Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some good examples of JQuery using JSONP talking to .net?

Tags:

jquery

.net

jsonp

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.

like image 761
Bravax Avatar asked Jan 15 '09 23:01

Bravax


1 Answers

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

like image 57
redsquare Avatar answered Oct 06 '22 00:10

redsquare