Skip to content

Instantly share code, notes, and snippets.

@rbaty-barr
Created December 4, 2018 01:35
Show Gist options
  • Save rbaty-barr/ba77ecc2af01b198d788d474f44acffc to your computer and use it in GitHub Desktop.
Save rbaty-barr/ba77ecc2af01b198d788d474f44acffc to your computer and use it in GitHub Desktop.
ajax construct reminder
$.ajax({
url: siteUrl,
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: function (data) {
//do something
},
error: function (data) {
console.log(JSON.stringify(data));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment