Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit a form to a script

Status
Not open for further replies.

cdfly

Programmer
Jun 16, 2010
68
US
Hello,
I have requirement that calls for the user to submit a form and then display updates on the form while the module is running through its code. The will be entering data into the form as well as uploading a file.
In other applications I could just set the target of the form to a hidden iframe and do the updates VIA ajax and that way the form doesn't flash or open in another window.
I'm not sure what URL to set for the forms action, I added some scripts to the module but the form doesn't post to that script.
For instance if I set the forms action to
Livelink/livelink.exe?func=moduleName.scriptName and then submit it the form will submit but it's not going the script in the action.

Thank




Thanks
 
cdfly, I would recommend that you look at the BrowserBeGone function that is used on the Permissions update screens as this will do what you want.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Thanks ggriffit I'll take a look at that

 
I looked at the BrowserBeGone function and it looks like that's what I need but I'm having a problem submitting the form. I set the forms action to my request handler but when the form is submitted it's never reaching the execute method. Do I need to set something in the request handler or is there another module I need to use instead of a request handler when submitting a form?

Thanks again
 
I see what I needed to do, I needed to add a hidden field to point to my handler.
<input type=hidden name="func" value="mymodule.myhandler">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top