Skip to content

Instantly share code, notes, and snippets.

@premsh
Created June 24, 2013 22:45
Show Gist options
  • Save premsh/5854384 to your computer and use it in GitHub Desktop.
Save premsh/5854384 to your computer and use it in GitHub Desktop.
normal AJAX call to WCF
$(document).ready(function () {
$.ajax({
type: 'GET',
url: 'http://localhost:63751/Service1.svc/json/4',
dataType: 'json',
crossDomain: true,
async: true,
success: function (data) {
jsonData = data;
},
error: function () { console.log('Uh Oh!'); }
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment