Revision: 42252
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 2, 2011 06:52 by crypticsoft
Initial Code
function yqlQuery(query, callback){ var yqlURL = "http://query.yahooapis.com/v1/public/yql"; var data = { q: query, format: 'json', env: 'store://datatables.org/alltableswithkeys' } $.get(yqlURL, data, callback, 'jsonp'); } yqlQuery('select * from geo.places where text="Orlando"', function(response){ console.log(response); })
Initial URL
http://thinkvitamin.s3.amazonaws.com/membership/code-samples/YQL_jQuery_Example.zip
Initial Description
Thanks to thinkvitamin.com for the wrapper / video! http://membership.thinkvitamin.com/library/tools/yql/javascriptjquery-example
Initial Title
yqlQuery wrapper function
Initial Tags
Initial Language
jQuery