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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -