Skip to content

Instantly share code, notes, and snippets.

@skenderbeu
Created December 21, 2011 21:20
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 skenderbeu/1507761 to your computer and use it in GitHub Desktop.
Save skenderbeu/1507761 to your computer and use it in GitHub Desktop.
Example jquery JSONP OData request
$.ajax({
url: "http://WestCumbriaChurch.org.uk/WestCumbriaChurch.svc/Churches/?$format=json",
contentType: 'application/json; charset=utf-8',
type: 'GET',
dataType: 'jsonp',
error: function (xhr, status) {
alert(status);
},
success: function (result) {
//TODO: Display the result
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment