Skip to content

Instantly share code, notes, and snippets.

@jaredlewis
Created March 21, 2013 19:21
Show Gist options
  • Save jaredlewis/5215858 to your computer and use it in GitHub Desktop.
Save jaredlewis/5215858 to your computer and use it in GitHub Desktop.
$.ajax({
type: "POST",
url: "/some/new/endpoint/to/get/data/from",
data: {
param1: 'value1',
param2: 'value2'
},
success: function(response){
console.log(response);
},
error: function(){
console.log('handle the error here');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment