[jQuery] Re: Can't understand a Jquery statement

2007-10-17 Thread Wizzud
If you're still not sure what it does I'm just expanding on what Karl wrote above Given your code of... for (var i = 0; i < 10; ++i) { var n = $($("virtual-sensor",data).get(i)).attr("name"); if (n!=null) gsn.vsbox.add(n); // add the selection to a box } ...the line

[jQuery] Re: Can't understand a Jquery statement

2007-10-16 Thread charliend
Thank you very much for our answers. Here is the exact algorithm: for (var i = 0; i < 10; ++i) { var n = $($("virtual-sensor",data).get(i)).attr("name"); if (n!=null) gsn.vsbox.add(n); // add the selection to a box

[jQuery] Re: Can't understand a Jquery statement

2007-10-16 Thread Karl Swedberg
On Oct 16, 2007, at 12:24 PM, Andy Matthews wrote: // creates a new, empty jQueru object $( // create a new jQuery object using virtual-sensor // as the selector, with 'data' as the context // and it returns the ith record in that query into // an array.

[jQuery] Re: Can't understand a Jquery statement

2007-10-16 Thread Andy Matthews
// creates a new, empty jQueru object $( // create a new jQuery object using virtual-sensor // as the selector, with 'data' as the context // and it returns the ith record in that query into // an array. $("virtual-sensor",data).get(i) // this gets all recor