I've been working on a stock widget and you can check out the code here: http://jsfiddle.net/thetuneupguy/h6RB8/
$(function() {
$.getJSON('http://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20yahoo.finance.quotes%20WHERE%20symbol%20in(%22GCF14.CMX%22%2C%22SIF14.CMX%22%2C%22PAH14.NYM%22%2C%22PLF14.NYM%22)&format=json&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=', function(data) {
console.log(data.query.results.quote);
$.each(data.query.results.quote,function(key,val){
var items = [];
$.each(val,function(name,value){
items.push('<li>' +name+ ' : '+ value + '</li>');
});
$('<ul/>', {'class': 'my-new-list',html: items.join('')}).appendTo('#blk-1');
});
});
});
I'm looking for suggestions on how to improve the display of the results and how to style them to fit better into my widget design. Any advice would be greatly appreciated. Thanks!