tags:

views:

1937

answers:

1

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.

+5  A: 

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.

JSONP with WCF

Good screencast

& a few articles below

Rick Strahl has a blog post on it
Another

redsquare