My json data printed at the controller is correct. But my data.length at 
the ajax javascript says "undefined". Even if i loop, it doesnt enter 
the loop as data.length is undefined.


success(data){
var x = new Array();
alert("created new array");
for (var i=0;i<data.length;i++)
{
x[i] ,x[data[i].toString()]=function(){};
}
}


Nikhil

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to