Jump to content

Recommended Posts

Posted

Maybe its escaped me, but I cant figure out how to get say the value or text of a label is that updated say via javascript in IE.

For example, there is a page that lists the user who created a ticket.

Heres the html code of the label:

<span id="_ctl0_phMain_fvOrderDetails_lblCreator">randerson</span>

How do I get the value of 'randerson' for this? Doing a simple _IEPropertyGetValue doesnt work, and im obviously not understanding this one.

Posted

Same here, I have solar controller that sends real time data via web. I want to read it with Autoit.

There is javascript beginning of html. I think data is in the variables when i look source. "RTDdata11" etc. How i can read it?

<tr>
    <td height="28" align="center"><div align="right"><span class="STYLE8">Charge Power<span class="STYLE6">(W):</span></span></div></td>
    <td style="width: 107px" class="style1">
    <div id="RTData4" style="width: 93px" class="STYLE7">
    </div>
    </td>
    <td align="center" style="width: 283px"><div align="right"><span class="STYLE8">Remote Sensor Temp.(</span><span class="style4"><sup>o</sup></span><span class="STYLE6">C</span><span class="STYLE8">):</span></div></td>
    <td class="style1">
    <div id="RTData11" style="width: 93px" class="STYLE7">
    </div>
    </td>
  </tr>

IE9 W7

Posted

Found my solution. Was bad object references I finally got mine by using:

$oQuery = _IEGetObjById($oIE, "_ctl0_phMain_fvOrderDetails_lblCreator") ;Element reference
_IEPropertyGet( $oQuery, "innertext" ) ;Get value

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
  • Recently Browsing   0 members

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