Created
December 21, 2011 21:20
-
-
Save skenderbeu/1507761 to your computer and use it in GitHub Desktop.
Example jquery JSONP OData request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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