Jump to content

[IE - get button ID] - RESOLVED


enaiman
 Share

Recommended Posts

Well - I can't get a handle to the button labelled "Export" in the following html:

<html>
<head>
    <title>Altitude™ AP Inventory</title>

</head>
<body>

<table border='0' width='100%'>
<tr>
    <td class="cnRTDHead">Altitude™ AP Inventory - 192.168.0.10</td>
    <td align="right">Data as of Oct 16, 2009 11:51:40 am</td>
</tr>
</table>

<!-- contents -->
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td align="center" valign="top" bgcolor="#666666">
<font color='white'>There are no configured Altitude™ APs</font><br></td></tr></table>

<br>
<table border='0' width='100%' id='close_button'><tr>
    <td><input type="button" value="Export" style="width:180px" onclick="grab_xml()"></td>
    <td align="right"><input type="button" value="Refresh" style="width:80px" onclick="window.location.reload()">
        <input type="button" value="Close" style="width:80px" onclick="window.close()"></td>
</tr></table>

</body></html>

The problem is: the button doesn't have an ID or a name.

How can I possibly get that button clicked (mouse-clicks at coordinates are out of question)?

Thanks for any help.

My bad: posting without proper search is a big no-no.

Shame on me :)

Solution:

- from another post ... can't find it, so no-credit ...

$colTags = _IETagNameGetCollection($oIE, "input")
For $oTag In $colTags
    If $oTag.value = "Export" Then
        _IEAction($oTag, "click")
    EndIf
Next
Edited by enaiman

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...