Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extracting URL's
Message
 
 
À
29/12/2003 10:49:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00862479
Message ID:
00862627
Vues:
14
>>>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" )
- Andy Rice
San Diego, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform