quote:
Originally posted by rav0
Couldn't you just get rid of the popup and have the page submit to itself?
No, I don't have access to the script itself
quote:
Originally posted by rav0
Why do you need the timer?
to wait for the script to execute before refreshing, as it impacts the form page.
quote:
Originally posted by hmaster
Make script.php with the script you want to execute when they press submit and add at the end window.close.
I tried winFunc=window.open... and winFunc.document.onload=winFunc.close() combinaton, but get a security warning when trying to do it.
quote:
Originally posted by hmaster
Your form should work like this:
code:
<form action='' method='post' onSubmit="window.open('script.php', 'WindowName', 'height=100,width=100'); setTimeout(window.location = unescape(window.location.pathname), 2000);return false;">
<!-- Form elements -->
<input type='submit' value='Submit'>
</form>
I think thats what you're trying to do?
Will that actually submit the form info to script.php though?