Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unreliable webbrowser ?
Message
 
 
À
04/09/2003 16:06:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00826193
Message ID:
00826251
Vues:
24
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform