0

I am having weird issue in IE 11 (Version: 11.285.17134.0). After I logged in to my site I have been redirected to a landing page where the user performs a search which makes a $.ajax POST request to fill data in a grid.

However for every first request on that page it does not reach the server and the below error comes up.

SCRIPT7002 : XMLHttpRequest: Network Error 0x800c0007

After that every $.ajax post request works very well without issues. We are using common $.ajax function to perform post request.

this.ajaxPost = function(webURL, dataType, dataParam, successFunc, errorFunc, asynchParam) {
  if (!asynchParam) {
    asynchParam = false
  }

  return $.ajax({
    async: asynchParam,
    contentType: "application/json; charset=utf-8",
    type: "POST",
    url: webURL,
    dataType: "json",
    data: JSON.stringify(dataParam)
  }).done(successFunc).fail(errorFunc);
}

It looks like intermittent AJAX requests fail in IE 11. Any help would be greatly appreciated.

2
  • 1
    Aside from the issue, but async should always be set to true. Synchronous requests are incredibly bad practice. Commented Oct 5, 2018 at 13:59
  • yeah i understand that; it just a option i put if requires we can use it for synchronous request. Any comment regarding the main issue ? Commented Oct 8, 2018 at 7:14

0

Browse other questions tagged or ask your own question.