Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@smedstadc
Created March 11, 2016 03:02
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 smedstadc/ab0fc4990520bb262aed to your computer and use it in GitHub Desktop.
Save smedstadc/ab0fc4990520bb262aed to your computer and use it in GitHub Desktop.
function logIt(it) {
console.log(it);
}
ajaxOptions = {
url: 'http://myrequest.com/?param1=true&param2=false',
dataType: 'jsonp',
jsonpCallback: 'logIt'
}
response = $.ajax(ajaxOptions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment