Created
September 15, 2014 20:43
-
-
Save benwillkommen/1f169bd9efde9812114c to your computer and use it in GitHub Desktop.
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
$.post( "/endpoint/url/goes/here", | |
{ | |
message: "this is an object full of data that you're POST'ing to the server", | |
A: 69, | |
S: true, | |
L: "your dreams" | |
}, | |
function( data ) { | |
console.log("we're in the success callback! everything is fine!"); | |
console.log("here's what the server returned:", data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment