/ Published in: jQuery

This will successfully retrieve cross domain without 302
using Complete avoids 200 statusText with "parsererror"
using Complete avoids 200 statusText with "parsererror"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var FaxService={ ServiceEndpoint:'http://localhost:19414/Service/', FaxServiceOrder:null, callService:function(serviceName,cb){ $.ajax({ type: "GET", url: url+serviceName, contentType: "application/json; charset=utf-8", dataType: "json", complete:cb }); }, getNewFaxServiceOrder:function(){ FaxService.callService('GetNewFaxServiceOrder',function(data) { FaxService.FaxServiceOrder = data; }); } }
Comments
