/ Published in: jQuery
Thanks to thinkvitamin.com for the wrapper / video!
http://membership.thinkvitamin.com/library/tools/yql/javascriptjquery-example
http://membership.thinkvitamin.com/library/tools/yql/javascriptjquery-example
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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); })
URL: http://thinkvitamin.s3.amazonaws.com/membership/code-samples/YQL_jQuery_Example.zip