Re: Spyce-users digest, Vol 1 #360 - Calling a form handler
jess hill <[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
This is the way I call a Form handler 'manually'. Don't know if there is a 'right' or 'wrong' way, but this works for me. 1. I set up my actual form handlers in some 'MyFormActionHandler.spy' script 2. In my form page, I add some onClick (or whatever) javascript event that calls a javascript function 3. I add some 'hidden' input variables in the form tag to manage any extra parameters I may wish to pass to the handler 4. I issue a document.....'FormName'.submit() from the javascript function (see javascript manual for method calls) 5. A simple 'redirect' from the action handler gets me back to any page I need to go to In this way, using the javascript event handlers (whatever they are), I set up a simple MVC framework that works like a dream, Hope this helps (or have I misread the question -as usual :) Jess B. Hill <snip> > 1. Calling handlers manually (Conan C. Albrecht) <snip> >I need to call a form handler manually. Specifically, I'm sending a >verification email to users, and I'd like to call a handler as if it >had come from a <f:form> handler. (I want it to come from either an >email click OR from a regular <f:form> form). > >What is the "right" way to do this? > >____________________________________ >Conan C. Albrecht, Ph.D. >Information Systems Department >Brigham Young University <snip> ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click