Information générale
Catégorie:
COM/DCOM et OLE Automation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement