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
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
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.
// 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
4 matches
Mail list logo