Created
October 4, 2011 18:53
-
-
Save dannylloyd/1262454 to your computer and use it in GitHub Desktop.
Gets data from jsonp source using jQuery
This file contains hidden or 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
| var url = "http://api.twitter.com/1/statuses/user_timeline/codinghorror.json"; | |
| $.getJSON(url + "?callback=?", null, function(tweets) { | |
| for (i in tweets) { | |
| tweet = tweets[i]; | |
| $("#result").append(tweet.text + "<hr />"); | |
| } | |
| }); | |
| ' Source : http://stackoverflow.com/questions/2681466/jsonp-with-jquery |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment