Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading HTML and not InnerHTML
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00621335
Message ID:
00621355
Vues:
9
>>>When doing IE automation, when we use the InnerHTML property to read the HTML code, that code is the generated code by the object and not the original code of the source page. How can we go from that:
>>>
>>>
>>>loHtml.Document.Body.InnerText
>>>
>>>
>>>and obtain the proper HTML source of the page?
>>
>>Use the document.all collection to get the HTML object and from this object get the html.innerHTML content.
>>
>>This will give you nearly all the content of the page except the html tag itself :-)
>
>How do you do this?
>
>All is not available from loHtml.Document.

The HTMl object should be the first (zero based collection) item
in the all collection of the document object.
*oBrow is the browser object
oAllCol=oBrow.document.all
oItem=oAllCol.item(0) && probably the html element :-)
? oItem.tagName
HTH
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform