Skip to content

Instantly share code, notes, and snippets.

@jasdev
Created December 3, 2012 21:51
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 jasdev/4198438 to your computer and use it in GitHub Desktop.
Save jasdev/4198438 to your computer and use it in GitHub Desktop.
JSONP Call Scaffolding
function postCall(data) {
console.log("Data from JSON");
}
$(document).ready(function () {
var endpoint = //URL here
$.ajax({url: endpoint, dataType: "jsonp", success: postCall});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment