javascript - CORS error - Working in Chrome but fails in IE -
i have below script doing ajax call , trying redirect url. problem here below code working fine in chrome fails in ie.
function loginsubmit() {         debugger;          $('#loginform').validate();          if ($('#loginform').valid()) {             myapp.showprogress();             $.ajax({                 url: "/authentication/login",                 type: "post",                 data: $("form[name=loginform]").serialize(),                 success: function (data) {                     debugger;                     $('convertinsuredlogin').html("");                     if (data != null && data.oldaccountnumber) {                         insuredlogin(data.oldaccountnumber);                     }                     else if (data != null && data.returnurl) {                         //error line                         window.location.replace(data.returnurl);                     }                     else {                         var newdoc = document.open("text/html", "replace");                         newdoc.write(data);                         newdoc.close();                     }                 },                 complete: function () { myapp.hideprogress(); }             });          }         return false;     }       
 
  
Comments
Post a Comment