I have a web page with a vbscript section that looks like
Sub Window_Onload()
msgbox("Here")
call getprojmonths(intProjNum,0)
End Sub
getprojmonths is a javascript function being called from a vbscript
sub to provide ajax functionality and yes, it works.
Here's the odd part: if I take out the msgbox the call does not get
made. Furthermore, if I put another vbscript statement between the
msgbox and js call it won't work; the js call must immediately follow
the msgbox.
I'm working on rewriting the js as vbscript but I am still curious why
I have to execute a msgbox to get the js call to work.
I'd love to hear why it behaves this way if anyone knows.