Skip to content

Instantly share code, notes, and snippets.

@thinkphp
Created March 31, 2012 10:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinkphp/2261855 to your computer and use it in GitHub Desktop.
Save thinkphp/2261855 to your computer and use it in GitHub Desktop.
jQuery-yql usage
var url = 'use "http://thinkphp.ro/apps/lastfm/YQL-open-data-table/recentlastfm.xml" as lastfm; select * from lastfm where username=#{username} and api_key=@{api}'
$(function(){
$.yql(url,
{username: 'asd', api: '2993c6e15c91a2890c2f11fa95673067'},
function(data){
document.getElementById('result').innerHTML = data.query.results.result
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment