Skip to content

Instantly share code, notes, and snippets.

@jlengstorf
Created May 21, 2012 02:39
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#8 Code example from "JSON: What It Is, How It Works, & How to Use It"
$.ajax(
type:'GET',
url:"http://example.com/users/feeds/",
data:"format=json&id=123",
success:function(feed) {
document.write(feed);
},
dataType:'jsonp'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment