General information
Category:
Internet applications
>>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. 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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only