I am trying to iterate through some JSON results from a YQL geo.places table using the YQL jQuery plugin ( http://plugins.jquery.com/project/jquery-yql ) troubleshooting with the following code;
$.yql("select * from geo.places where text=#{placename}", {
placename: '90210'
},
function(data) {
var Results = data.query.results;
$.each(Results.place, function(name, value) {
alert(name + ":" + value);
});
});
});
In addition, whenever the results contain more than one place, the warning spits out "0: [object] [object]", "1: [object] [object]", etc. (for each place). Whenever there is only one result, a warning splashes out all the names and values of only one place (woeid, name, country, admin1, etc.).
Essentially, I would like to ...
!