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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.form.submit - Auto Submit script 1

Status
Not open for further replies.

Ovatvvon

Programmer
Feb 1, 2001
1,514
US
I have used an auto submit script when needing to submit data using post by useing the following vbscript


<script language=&quot;vbscript&quot;>
document.form.submit
</script>


now I have a page that I want to do that, however I want to set a time before it will actually run the script. In javascript I know I could set a timeout for before it will run the script, Ex:


setTimeout('callFunction()', 200);



however it seams as though it doesn't want to take a jscript function and use it to apply to a vbscript function...so my Question would be either: Is there a timeout setting for vbscript? or Is there a way to auto submit a form in javascript?

Thanks in advance!
- Ovatvvon :-Q

 
Javascript syntax:

document.formName.submit();

which you can use with the setTimeout()

:)
Paul Prewett
penny.gif
penny.gif
 
Excellent! Works perfect!

Thank you!
-Ovatvvon :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top