>I'm using VFP 7.0
>
>I'm building a webbrowser using the _webbrowser4 class.
>
>The events in the webbrowser don't appear to be consistant.
>The "DownloadComplete", "DocumentComplete", etc. events sometines trigger but not always.
>Is there any way to RELIABLY determine if the web-page has finished loading?
>
>TIA
The code below seems to hold up the WebBrowser until the page loads completely. Place it as the last step in loading a page.
DO WHILE THISFORM.webBrowser.Object.ReadyState <> 4
ENDDO
This explains the ReadyState values:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebgen/html/reusebovw.asp
- Andy Rice
San Diego, CA