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

Doevents

Status
Not open for further replies.

Ladyhawk

Programmer
Jan 22, 2002
534
AU
I have this code...

<SCRIPT LANGUAGE=&quot;VBScript&quot;>
Sub SubmitForm
DataForm.submit
DoEvents
if window.parent.frames(&quot;main&quot;).location <> &quot;home.asp&quot; then
window.parent.frames(&quot;main&quot;).location.reload
end if
End Sub
</SCRIPT>

DoEvents does not exist in VBScript (from what I have read)Is there some way I can force the submit to finish or find out when it has finished, so that I can reload the page after the submit?

Cheers, Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
When you call the submit() method, you're pretty much done right there.

You window_onunload() event handler and such will get called, but you aren't supposed to try fiddling after the submit() at all even if it might let you. The whole point of submit() is to say &quot;navigate to this URL with this form input.

Just a note: ASP/VB/Java Programmer? Well perhaps you really mean that. But VBScript is not VB, and Javascript is even less Java. I'm not saying you don't know better, but I am amazed how many people claim they are Java programmers here when they aren't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top