Jump to content
Sign in to follow this  
Michael Lester

Parse a form based on <DIV>

Recommended Posts

Michael Lester

I need to parse a form and retrieve data that is in an ID'ed DIV (see the example below. This is not the whole page, obviously).

I know you can use _IETableGetCollection on tables. Is there anyway to do the same with DIVs??

Thanks.

------------------------------------------------------------------------------------------------------------------------------------------------------------

<div id="tickerCommunityGraph" class="container">

<div class="collapseItem item0">

<h4>All Members</h4>

<div class="outperforms column">

<div>Bulls</div>

3979 <!-- <<<<<<<< this data -->

</div>

<div class="graphic column">

<img src="chart_60.gif" width="75" height="56" title="" />

</div>

<div class="underperforms column">

<div>Bears</div>

2424 <!-- <<<<<<<< and this data -->

</div>

</div>

</div>

Share this post


Link to post
Share on other sites
PsaltyDS

I need to parse a form and retrieve data that is in an ID'ed DIV (see the example below. This is not the whole page, obviously).

I know you can use _IETableGetCollection on tables. Is there anyway to do the same with DIVs??

Thanks.

------------------------------------------------------------------------------------------------------------------------------------------------------------

<div id="tickerCommunityGraph" class="container">

<div class="collapseItem item0">

<h4>All Members</h4>

<div class="outperforms column">

<div>Bulls</div>

3979 <!-- <<<<<<<< this data -->

</div>

<div class="graphic column">

<img src="chart_60.gif" width="75" height="56" title="" />

</div>

<div class="underperforms column">

<div>Bears</div>

2424 <!-- <<<<<<<< and this data -->

</div>

</div>

</div>

Use _IETagNameGetCollection() to get a collection and loop through them looking for $oTag.className = "outperforms column" (or "underperforms column" as required). The text will be in $oTag.innertext.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.