Michael Lester Posted February 5, 2009 Posted February 5, 2009 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>
PsaltyDS Posted February 5, 2009 Posted February 5, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now