SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jul 2006
    Location
    Fairfax, VA
    Posts
    145
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    how to check link is enable or disable

    Hi I have list of the link i want to check whether link is enable or disable. I am able to get text by
    <font class="small">Code:</font><hr /><pre>
    a= oAnchor.innertext
    </pre><hr />

    i tried to get enabled status by

    <font class="small">Code:</font><hr /><pre>
    b= oAnchor.enabled
    </pre><hr />

    but it is not working any idea ?

    thanks

  2. #2
    Senior Member
    Join Date
    Jul 2006
    Location
    Fairfax, VA
    Posts
    145
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to check link is enable or disable

    here is the full code

    <font class="small">Code:</font><hr /><pre>
    Set oAnchors = objTable.Object.GetElementsByTagName("A") 'This will grab all of the links in the page.
    blnFound = False
    For Each oAnchor in oAnchors
    'Use some property to identify which link you are on
    'And if it's the right one....
    a= oAnchor.innertext
    msgbox a
    <font color="red">b=oAnchor.enabled

    msgbox b
    </font>


    If trim(a) = trim(strCNumber) Then
    oAnchor.Click()
    blnFound = True
    End If
    Set oAnchor = Nothing
    If blnFound = True Then
    Exit For
    end if
    Next 'oAnchor

    Set oAnchors = Nothing

    </pre><hr />

  3. #3
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: how to check link is enable or disable

    you need to check disabled property and not enabled.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:56 AM.

Copyright BetaSoft Inc.