Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading ASP data from a web page to VFP
Message
From
16/09/2000 23:09:22
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00417294
Message ID:
00417375
Views:
25
Thanks for the code! your suggestion works fine on the Universal Thread web site but not on the one in question.

When I run this code:

CREATE CURSOR pagecatalog (ItemIndex i, InnerText M, InnerHTML M)
FOR i = 0 TO oie.DOCUMENT.body.ALL.LENGTH -1
m.ItemIndex = i
m.InnerText = oie.DOCUMENT.body.ALL(i).InnerText
m.InnerHTML = oie.DOCUMENT.body.ALL(i).InnerHTML
INSERT INTO pagecatalog FROM MEMVAR
ENDFOR

I get three records and only the third record for the InnerHTML memo field has any info in it. The data in that field is the following HTML code:

body
p This web page uses frames, but your browser doesn't
support them.
body

Of course IE 5.0 supports frames but this is where it gets strange. I clicked view code and saved the info to disc as a htm file. I ran the code above on the web page code stored on disc and I was able to extract the text! Why doen't this work from the web site?
Previous
Reply
Map
View

Click here to load this message in the networking platform