Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unreliable webbrowser ?
Message
 
 
To
04/09/2003 16:06:06
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00826193
Message ID:
00826251
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform