Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read web page source
Message
From
16/09/2009 20:11:44
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01424816
Message ID:
01424832
Views:
65
Ah, I was looking for .body in the Intellisense list and it's not there. I wasn't trying your code since I couldn't see the property, but the property is indeed accessable anyway.

Thanks.


Gary


>I just tried it (using IE8 and Vista)
>
>
>loIE = CREATEOBJECT("InternetExplorer.Application") 
>#DEFINE READYSTATE_COMPLETE      4 
>#DEFINE MAX_TIME                30 
>#DEFINE OLECMDID_PASTE          13
>#DEFINE OLECMDEXECOPT_DODEFAULT  0
>
>local lcInnerHTML && HTML of the webpage 
>local lnStarted && Seconds when started loading 
>local lnWaiting && Seconds waiting for the document to load 
>local lcRetVal && Return Value 
>
>lnStarted = SECONDS() 
>
>loIE.navigate("www.yahoo.com") 
>
>* Wait till page totally loaded
>DO WHILE loIE.Readystate <> READYSTATE_COMPLETE && or lnWaiting >= MAX_TIME 
>   lnWaiting = SECONDS() - lnStarted 
>ENDDO 
>
>=MESSAGEBOX(loIE.Document.Body.InnerHtml)
>
>and it worked for me.
>
>>Thanks, but oIE.Document doesn't have a body object or innerhtml property. I'm using IE 8.
>>
>>GAry
>>
>>
>>>>Hi,
>>>>I have a page up in a browser and a an object ref and I want to push a button on the page. I can do what I want to do if I can read the HTML source, but I dont see any way to get to it. No property of teh IE object seems to get the underlying HTML. Can this be done?
>>>>With the HTML I can parse the URL I need to navigate to.
>>>>
>>>>Thanks,
>>>>Gary
>>>
>>>Try
>>>
>>>loIE.Document.Body.innerHTML
>>>
>>>See Re: Change NCRs back to characters Thread #1350866 Message #1350883
>>>
>>>and
>>>
>>>Re: Web Server Automation Thread #1330352 Message #1330473
>>>
>>>or
>>>
>>>Re: Class def. WinHTTP.WinHTTPRequest.5 is not found on XP Thread #1323708 Message #1324095
>>>
>>>and even
>>>
>>>Re: SYS(1500) Help Thread #1280185 Message #1280429
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform