Created
January 30, 2013 13:14
-
-
Save timbergus/4673224 to your computer and use it in GitHub Desktop.
Snippet to create a jQuery AJAX Synchronous call using POST.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.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. | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not working for jQuery 1.11