Skip to content

Instantly share code, notes, and snippets.

@evanrmurphy
Created December 21, 2010 19:40
Show Gist options
  • Save evanrmurphy/750448 to your computer and use it in GitHub Desktop.
Save evanrmurphy/750448 to your computer and use it in GitHub Desktop.
Simple HTML/jQuery snippet to query the chirps feed using JSONP
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>
$(function(){
$.getJSON(
"http://chipchirp.heroku.com/chirps.json?callback=?",
function(data) {
console.log(data);
});
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment