Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Webbrowser Control
Message
From
01/07/1999 14:15:14
 
 
To
01/07/1999 11:46:23
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00236291
Message ID:
00236600
Views:
10
>>>I use _Webbrowser control from VFP framework.
>>>I need to execute some code afer Navigation is complete. I have code in NavigateComplete2. It looks like it fires when navigation completed only partially not completely. If I use =INKEY(someseconds) then it works. Please help.
>>>Thanks Mark
>>
>>To run code only after the page has completely finished downloading, use NavigateComplete, not NavigateComplete2. The help (ieref.chm) specifically states that NavigateComplete2 fires as soon as the page starts downloading. It is really to run code after the browser is ure that the name can be resolved and the server is alive and serving.
>>
>>Alternatively, you can run code outside the control by Checking Document.ReadyState in a loop. As Soon as Document.ReadyState = "complete", your document is finished downloading.
>I dont know how are you going to monitor 'WebBrowser.Document.ReadyState' for 'complete'. If you check it right after navigation there is no Document yet.

The WebBrowser object has a Readystate property as well. Use that instead. A readystate value of 4 is complete.

Another thing: if I put on the form Web Browser control I have an error message every time I run a form "Unexpected Error ..". But if I use _webbrowser4 from Gallery I dont have that error. Can you help me?
>Thanks Mark

Have a look at SYS(2333) and see if that helps with your error.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform