Skip to content

Instantly share code, notes, and snippets.

@benwillkommen
Created September 15, 2014 20:43
Show Gist options
  • Save benwillkommen/1f169bd9efde9812114c to your computer and use it in GitHub Desktop.
Save benwillkommen/1f169bd9efde9812114c to your computer and use it in GitHub Desktop.
$.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