Last active
August 29, 2015 14:08
-
-
Save fisherds/05eeab1396a8679510d6 to your computer and use it in GitHub Desktop.
Skeleton code for a jQuery getJSON call from our ServerTime example
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
| $.getJSON("/servertime").done(function(json) { | |
| console.log("JSON Data: " + JSON.stringify(json)); | |
| // TODO: Do something with the JSON data. | |
| }).fail(function(jqxhr, textStatus, error) { | |
| console.log("GET JSON Request Failed: " + textStatus + ", " + error); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment