Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@terra819
Created March 26, 2013 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terra819/5245223 to your computer and use it in GitHub Desktop.
Save terra819/5245223 to your computer and use it in GitHub Desktop.
Ajax getter/setter with json formatted data
$.ajax({
url: window.webRoot + 'Validations/SaveValidation',
data: JSON.stringify({data}),
type: "post",
contentType: "application/json",
success: function (resultData) {
// code to execute on success
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment