Page 1 of 1

loop through all components on page

Posted: Wed Sep 04, 2013 12:06 pm
by tropo test

Dear All,

can you pls point me on how to loop through all objects (components) on a page?

TIA!


loop through all components on page

Posted: Wed Sep 04, 2013 12:55 pm
by Serhii Kulibaba

Hello!
Try next code:
pre$("[name=mobilecontainer1] >").each( function(e){
if (typeof e === "object") {
console.log(e);
})/prewhere:
"mobilecontainer1" - name of Mobile Container from your page
"console.log(e);" - just example. Any JS for elements processing.


loop through all components on page

Posted: Wed Sep 04, 2013 1:11 pm
by tropo test

awesome!