Skip to content

Instantly share code, notes, and snippets.

@rishabh-ink
Created September 14, 2012 06:16
Show Gist options
  • Save rishabh-ink/3720143 to your computer and use it in GitHub Desktop.
Save rishabh-ink/3720143 to your computer and use it in GitHub Desktop.
jQuery AJAX method stub
jQuery.ajax({
url: "http://",
type: "GET",
dataType: "json",
async: true,
cache: true,
data: {},
beforeSend: function(jqXHR, settings) {
},
complete: function(jqXHR, settings) {
},
error: function(jqXHR, textStatus, errorThrown) {
},
success: function(data, textStatus, jqXHR) {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment