Last active
April 4, 2020 09:00
-
-
Save calvinchoy/5299249 to your computer and use it in GitHub Desktop.
JS - simple ajax call #jquery
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: "url to the server processing code", | |
dataType: "json", | |
contentType: "application/json", | |
data: JSON.stringify({}), | |
success: function(response) { | |
//response is json data returned from server side url | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment