in reply to onSubmit Redirect
Here is what I would suggest:
1. make a 0 size frame on the webpage (basically a hidden frame) to re-direct these kind of requests.
<html> <head> <frameset rows="0,*" border="0"> <frame src="URL TO NOTHING (about:blank)" name="hiddenFrame" noresiz +e scrolling=no> <frame src="/cgi-bin/mainScript.pl" name="mainFrame" noresize> </frameset> </head> </html>
2. When the form button is clicked, process that request and then print the following output to the html page:
# PROCESS HTML SUBMIT HERE if (button clicked) { # any code needed before redirect print qq { <script language=javascript> window.open('/cgi-bin/changestatus.pl','hiddenFrame','') window.open('/cgi-bin/mainScript.pl?otherVar1=x&otherVar2=y','main +Frame','') </script> </html> }; exit; }
If the changestatus.pl needs to complete first, you may need to put a sleep in your code before displaying the results of the second window.open statement. Don't wait too long or you'll annoy your users :)
There might be a consolidated way to do this, but this has worked in several occasions for me.
Sincerely,
Marc
|
|---|