Skip to content

Instantly share code, notes, and snippets.

@gjohnson
Created January 19, 2011 00:38
Show Gist options
  • Save gjohnson/785459 to your computer and use it in GitHub Desktop.
Save gjohnson/785459 to your computer and use it in GitHub Desktop.
Basic getJSON example
$.getJSON('foo.php').then(function(r){
console.log(r);
}, function(jxhr){
console.log(jxhr);
});
console.log('whats up?');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment