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