Created
July 18, 2014 15:21
-
-
Save jeffdonthemic/a57cc73cb37175dc0aa7 to your computer and use it in GitHub Desktop.
jQuery ajax
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
<script> | |
// <![CDATA[ | |
$(document).ready(function(e) { | |
// get the leaderboard | |
$.ajax({ | |
type: 'GET', | |
url: "http://tc-leaderboard.herokuapp.com/cisco", | |
success: function(data) { | |
console.log('CISCO LEADERBOARD!!'); | |
console.log(data); | |
}, | |
failure: function(err) { | |
console.log('Could not fetch leaderboard: ' + err); | |
} | |
}); | |
// ]]> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment