Skip to content

Instantly share code, notes, and snippets.

@timbergus
Created January 30, 2013 13:14
Show Gist options
  • Select an option

  • Save timbergus/4673224 to your computer and use it in GitHub Desktop.

Select an option

Save timbergus/4673224 to your computer and use it in GitHub Desktop.
Snippet to create a jQuery AJAX Synchronous call using POST.
$.ajax({
type: 'POST',
url: 'Path to the file',
async: false,
data:
{
dataName1: value1,
dataName2: value2,
dataName3: value3
},
success: function(data)
{
// We do something with the returned data.
}
});
@yarving
Copy link

yarving commented Jul 31, 2018

It's not working for jQuery 1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment