Showing posts with label cross domain problem. Show all posts
Showing posts with label cross domain problem. Show all posts

Thursday, March 04, 2010

Cross Domain Solution is JSONP

If you encounter the cross domain problem then you should use JSONP. It seems JSONP is going to be adopted in .Net 4 (reference: http://bendewey.wordpress.com/2009/11/24/using-jsonp-with-wcf-and-jquery/)

to use JSONP download the classes
JSONPBehavior
JSONPBindingExtension
JSONPEncoderFactory
JSONPBindingElement

from

and implement the solution as explained in

you can download the code demonstrating the entire solution from aliayman.com/download/crossdomainJSONP.zip