Skip to content

Instantly share code, notes, and snippets.

View calvinchoy's full-sized avatar

Calvin Choy calvinchoy

View GitHub Profile
@calvinchoy
calvinchoy / JS - simple jsonp call.js
Last active April 4, 2020 08:38
JS - simple jsonp call #jquery
$.ajax({
url: "url to the server processing code",
dataType: "jsonp",
contentType: "application/json",
data: JSON.stringify({}),
success: function(response) {
//response is json data returned from server side url
}
});