Created
March 21, 2013 19:21
-
-
Save jaredlewis/5215858 to your computer and use it in GitHub Desktop.
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
$.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