Wiring up JSONP using JQuery and WCF
问题 I'm trying to get a cross domain call to work using JSONP within JQuery. In IE, the alert method never executed. In FF/Safari/Chrome, it's always null. I looked at Fiddler and the result from the WCF method is as I'm expecting, which is: method({"Name":"blah1","Data":"blah2"}); Here's my JavaScript: $.getJSON("http://localhost:5603/MyService/?method=test", null, function (result) { alert("in test: " + result); $("#spText").html(result); }); Here's the WCF method: [OperationContract]