Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extracting URL's
Message
De
30/12/2003 07:42:57
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00862479
Message ID:
00862787
Vues:
13
>>>>Hi All. Given a web page in HTML (downloaded using the IE browser control) is there a quick way to get a list of all links contained within it or must one parse the html for href= links?
>>>>
>>>Jos,
>>>
>>>You can use Links collection. For example,
oIE = CREATEOBJECT("InternetExplorer.Application")
>>>oIE.Navigate("www.levelextreme.com")
>>>...
>>>oDoc = oIE.Document
>>>? oDoc.Links.length
>>>
>>
>>Hi --sb--. Thanks again. Just what I needed. Have you got any useful links to the object heirarchy of IE? I did find some on MSDN but was just wondering if you had a particularly useful one.
>>
>>Also, Merry Christmas and thanks for all the great posts, solutions, and insights.
>
>Sergey gave you good advice.
>Another possibility is the Document.GetElementsByTagName method.
>Using the "A" below returns a collection of Anchor objects:
>
>  oIE = CREATEOBJECT("InternetExplorer.Application")
>  oIE.Navigate("www.levelextreme.com")
>  oHRefs = oIE.Document.GetElementsByTagName( "A" )
>
Thanks Andy. I'll check it out.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform