J. Scott Elblein
Well-known member
Does anyone have any good code (preferably simple) to reliably tell me when a page is done loading? Especially on a page that has Iframes, etc.
I have searched high and low for some good code and done lots of testing on my own, and am really frustrated with it at this point. I have a function that relies on the page being completely done loading before it can execute. I have gotten desperate enough to even consider just putting the thread to sleep for a bit, but since users could be on anything from dial-up to cable modem, in my opinion it's not a very good way of handling things.
I found one that seemed to have potential, but for some reason it just does not fire for me. This is that code (Placed in DocumentCompleted):
I would enormously appreciate some good code for this.
THANKS!
I have searched high and low for some good code and done lots of testing on my own, and am really frustrated with it at this point. I have a function that relies on the page being completely done loading before it can execute. I have gotten desperate enough to even consider just putting the thread to sleep for a bit, but since users could be on anything from dial-up to cable modem, in my opinion it's not a very good way of handling things.
I found one that seemed to have potential, but for some reason it just does not fire for me. This is that code (Placed in DocumentCompleted):
VB.NET:
If e.Url.ToString = wbr.Url.ToString Then
'Do stuff
End if
I would enormously appreciate some good code for this.
THANKS!