Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_webbrowser --> variable ?
Message
 
To
25/09/2002 13:53:03
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00704087
Message ID:
00704400
Views:
16
Hi, It seems that ReadState<>4 does not always work. I wonder if there might be more than one frame on the page, each with its own ReadyState? Would you know how to find that out? Is DownloadComplete better? But I don't know how to use it? Below, I have a <--- where I have inserted a manual "wait". Note, I don't have this problem with the Yahoo page but I am using it as an example.
Thanks
STeve

release all like o*
oie=NEWOBJECT("_webform",HOME()+"\gallery\_webview")

myUrl = "www.yahoo.com"
oie.olewebBROWSER.Navigate2(myUrl)

do while oIE.oleWEBBROWSER.ReadyState <>4
enddo

oie.WindowState= 2
oie.AlwaysOnTop= .T.
oie.Show()

oie.olewebBrowser.Document.Forms(0).p.value = "Claudio"
oie.olewebBrowser.document.forms(0).submit()

do while oIE.oleWEBBROWSER.ReadyState <>4
enddo
wait &&<<<<<<<<<<<<<<<----------------------- WAIT

oIE.olewebBrowser.Navigate2(oIE.olewebBrowser.document.links(14).href)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform