Reputation: 10493
As the question says, what are some good examples (or just examples really), of Jquery using JSONP to talk to a .net page or webservice?
I'm attempting to write a page which uses JQuery to call another website (Thus I need to use JSONP) which hosts the webservice/webpage (either is fine), and I can't find a good example of this.
Upvotes: 11
Views: 23226
Reputation: 78677
JSONP is just json wrapped inside a js method. jQuery provides the method name as a callback parameter on the querystring which the jsonp endpoint must then take and wrap the json in then send the response back. The server side language really is irrelevant.
& a few articles below
Rick Strahl has a blog post on it
Another
Upvotes: 14