I almost have the thing working but I can’t get past a parsing issue. If anyone can help I would be very thankful!
I am trying to query Yahoo Finance API and parse the results using jQuery. Here is my code to do so:
<script>
$(document).ready(function(){
var url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20WHERE%20symbol%3D'NPO'&format=json&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback";
$.getJSON(url + "&format=json&jsoncallback=?", function(data) {
var items = [];
$.each(data, function(key, val) {
items.push('<li id="' + key + '">' + val + '</li>');
});
$('<ul/>', {
'class': 'my-new-list',
html: items.join('')
}).appendTo('body');
});
});
</script>
But I am getting this error:

Any help overcoming this error would be much appreciated.
Thanks!
jsoncallbackparameter is not used by the service.callbackparameter. It is added by thegetJSON()formatparameter is already specified inurlitemsarray is storing objects as the data are underdata.query.results.quoteTry this:
Working code is HERE.