Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading ASP data from a web page to VFP
Message
De
16/09/2000 23:09:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00417294
Message ID:
00417375
Vues:
24
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform