jquery - Cross Domain AJAX Request IE Issue -


if($.support.opacity == false && window.xdomainrequest) {       var xdr = new xdomainrequest();       alert(ajaxstatusurl);       xdr.open("get", ajaxstatusurl);       xdr.onload = function () {         alert(1);         var json = $.parsejson(xdr.responsetext);         if(json == null || typeof(json) == undefined) {           json = $.parsejson(data.firstchild.textcontent);         }         processdata(json);       };       xdr.send();     }     else {       alert(2);       $.ajax({         type: "get",         url: ajaxstatusurl,         processdata: true,         data: {},         datatype: "json",         success: function (data) {           processdata(data);         }       });     } 

have couple of issues 1. in browserstack ie 9 $.support.opacity alerting true when should false 2. major issue when run code in ie 7 or 8 xdr.onload function not fire.

please not header in backend set allow origin.

can cross domain requests via ajax please


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -