Search code examples
jqueryjsonpwcf-clientwebservice-client

how to enable JSONP calls in JQUERY using .NET Framework 3.5


what do i need to do for invoke cross-domain reference using 3.5 framework? i learned that JSONP support by default in 4.0 framework.

what is the alternative any help?


Solution

  • It doesn't matter what framework or what environment you're using. As long as your web page returns a VALID JAVASCRIPT object wrapped in a function you're doing JSONP.

    Make your web page returns something like:

    func({"foo":"bar"});