All,
I'm looking for the best time to fire an onload save record event.
I currently have the following:
However as you can see I have had to put a msgbox in for the code to execute correctly. If i remove the messagebox the event seems to fire too early before the page has fully loaded.
I could use a timer but my datapage may take a while to load up for some users with a poor connection so it is not 100% bullet proof.
Any suggestions on where I can get this to fire?
I'm looking for the best time to fire an onload save record event.
I currently have the following:
Code:
<SCRIPT language=vbscript event=onload for=window> <!-- Call hi --> </SCRIPT> <SCRIPT language=vbscript> Sub hi() msgbox "hi" MSODSC.Datapages(0).Save end sub </SCRIPT>
However as you can see I have had to put a msgbox in for the code to execute correctly. If i remove the messagebox the event seems to fire too early before the page has fully loaded.
I could use a timer but my datapage may take a while to load up for some users with a poor connection so it is not 100% bullet proof.
Any suggestions on where I can get this to fire?
Comment