Skip to content

Instantly share code, notes, and snippets.

@horiajurcut
Last active December 27, 2015 05:49
Show Gist options
  • Save horiajurcut/7277557 to your computer and use it in GitHub Desktop.
Save horiajurcut/7277557 to your computer and use it in GitHub Desktop.
var cityDetails = $.ajax({
type: 'GET',
url: '/path/to/resource',
beforeSend: function() {
console.log('Before sending the Request');
},
success: function(result) {
console.log(result);
console.log('Response received.');
},
error: function() {
console.log('Error occured.');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment