Created
April 7, 2012 08:55
-
-
Save thinkphp/2326585 to your computer and use it in GitHub Desktop.
MooTools-YQL usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
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' | |
new Request.YQL(url, { | |
onSuccess: function(data){ | |
$('result').set('html', data.query.results.result) | |
}}, | |
{'username': 'olivboy','api': '2993c6e15c91a2890c2f11fa95673067'} | |
).send(); | |
})(document.id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment