Results 1 to 3 of 3

Thread: [SOLVED] IE/Webcontrol/DOM Question regarding Links and/or Anchors

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Location
    Hamilton
    Posts
    25

    Question [SOLVED] IE/Webcontrol/DOM Question regarding Links and/or Anchors

    Well another day another roadblock. My current problem:

    I need to retrieve the url of a link, searching by the value of what is in the link.

    IE: <a href="www.fakepage.net">123abc</a>

    I want to search for 123abc, and have the return be "www.fakepage.net". There is no real correlation between the link and the href, so I cant search any other way really.

    I'm sure it's possible, just not really sure how, cant find anything too useful on MSDN or the forums, though I'll keep searching.


    Hope to hear from someone soon,



    - Ripshaft

    PS: It is safe to assume no 2 links will have the same text in their <a> </a> portion.
    Last edited by Ripshaft; Nov 8th, 2004 at 10:09 AM.
    - Ripshaft

  2. #2
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    Hi Ripshaft, check out the example.
    Attached Files Attached Files
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Location
    Hamilton
    Posts
    25
    Damn, once again TheVader, you kick all different kinds of webcontrol ass. That works quite well, just need to make a few adjustments and I'm set, this will make a major difference in the functionality of my program.

    You've also provided me with a lil more insight into the versitility of the item() array and the innertext function which I should be able to use in other areas.

    Thanks alot, Solved!
    - Ripshaft

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width