Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing an HTML page...
Message
 
À
25/01/2008 23:29:47
Chris Sund
Silhouette Solutions
Utah, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01285714
Message ID:
01285716
Vues:
24
Hi Chris,

because the page contain only four table element.
This row 'varTables = loIE.DOCUMENT.ALL.tags("TABLE")' return colection of all tables from DOM.
FOR lii=0 TO varTables.length-1 
    ?varTables.Item(lii).innerHTML
NEXT
MartinaJ

>I'm trying to find a way to parse an html table, and then load the results into a form. I have a standard VFP project. To Clarify It's actually an asp page rendered to html. Here's an example below. Any suggestions are welcome.
>
>http://gis.mt.gov/parcelDetail.asp?Geocode=05188828216400000&Navi=0
>
>Here's an example I found out on the internet but I can't see the table in the document object...
>
>
>
>
>
>loIE = CREATEOBJECT("InternetExplorer.Application")
>
>loIE.VISIBLE = 0  && NOT VISIBLE, DEFAULT BUT ...
>loIE.NAVIGATE("http://gis.mt.gov/parcelDetail.asp?Geocode=05188828216400000")
>
>DO WHILE loIE.Busy  && WAIT UNTIL OBJECT IS DONE CONNECTING AND PASSING STRING
>*NOTHING
>ENDDO
>
>DO WHILE loIE.DOCUMENT.ReadyState <> "complete"  && WAIT UNTIL DOCUMENT IS FULLY LOADED
>*NOTHING
>ENDDO
>
>DEBUG
>SUSPEND
>
>*************************************************************************************
>** SCAN THROUGH THE WEB DOCUMENT AND INSERT WHAT IS WANTED INTO TEMP CURSOR
>varTables = loIE.DOCUMENT.ALL.tags("TABLE")
>vartable = varTables.Item(14)  && STATUS TABLE
>
>
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform