Jump to content

Can't find input tag by name property


aloalo
 Share

Recommended Posts

the tag i am trying to find is:

<SPAN ID=ctlViewChargeInformationComposite_Grid_PagingBarButton2>
        <INPUT NAME=ctlViewChargeInformationComposite_Grid_PagingBarButton2Image TYPE="image" SRC="/Z0G0-SF-PROD/dynamic\HTML\IMAGE\pag_blank.jpg" TITLE="" BORDER=0 STYLE="width:18px;height:18px;" onClick="fancy stuff">
</SPAN>

the code i'm attempting to use is:

$pPropertyValue = "ctlViewChargeInformationComposite_Grid_PagingBarButton2Image"
$oTags = _IETagNameAllGetCollection($poFrame)
For $oTag In $oTags
    If $oTag.name = $pPropertyValue Then
        MsgBox(0,"","Found Next Page " & $oTag.name)
    EndIf
Next

The input tag is within a span which is within a tr. I can find other input tags with other names, but this set of page controls eludes me for some reason. Any insight is appreciated.

 

EDIT: Nevermind. I had to loop my way through several iframes before I could find the tag. There was a flaw in my looping that I have now fixed.

Edited by aloalo
html tag context
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...