I am facing this strange issue with my website on Internet Explorer 11. I make Ajax call using pure JS (jquery not an option). It used to work nicely till IE10, and even with IE11 if I remember correctly, and now it won't. It happens with a lot of my users too.
var xmlhttp;
alert(window.XMLHttpRequest);
if (window.XMLHttpRequest) {
/* IE7+, Firefox, Chrome, Opera, Safari */
xmlhttp = new XMLHttpRequest();
} else {
alert('Inside Else');
}
The above code first alerts 'undefined' and goes to else.
This is an intranet site. My JSPs have the <!doctype html>
set, so I believe it would not trigger the compatibility view, also I am not using the X-UA-Compatible
meta tag.
I have tried to uncheck the compatibility settings/enterprise mode etc, but no luck.
Any suggestions would be appreciated.