Hi,

the function you pass to forEach is called with three parameters (just like
the native Array.forEach): The item, its index in the collection and the
collection itself. getHtml is a method on the collection, so you can call it
like this:

    q.ready(function() {        
            var divs = q('div.myClass'); 
            divs.forEach(function(div, i, collection) { 
                    var content = collection.eq(i).getHtml();

                    // ... change content 
            }); 
    });


Regards,
Daniel

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/qx-Website-forEach-tp7580265p7580269.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to