S
S
Sergey2016-11-08 18:54:11
JavaScript
Sergey, 2016-11-08 18:54:11

What policy can block the .responseText javascript procedure in IE?

I have a page on which I make a post-request using pure javascript. This is a key requirement, no jquery!
Here is the code:

varxmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
xmlhttp.open("POST", ' 10.141.2.13/dark_soft/map/inc/2.php ', true);
xmlhttp.send(); // Sending a POST request
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==0) document.getElementById('TestBox').innerHTML='stage0';
if (xmlhttp.readyState==1) document.getElementById('TestBox').innerHTML='stage0 - stage1';
if (xmlhttp.readyState==2) document.getElementById('TestBox').innerHTML='stage0 - stage1 - stage2';
if (xmlhttp.readyState==3) document.getElementById('TestBox').innerHTML='stage0 - stage1 - stage2 - stage3';
if (xmlhttp.readyState==4)
{
document.getElementById('TestBox').innerHTML='stage0 - stage1 - stage2 - stage3 - stage4';
document.getElementById('TestBox').innerHTML='stage0 - stage1 - stage2 - stage3 - stage4'+xmlhttp.responseText;
}
}

Everything works in normal browsers. On several machines with IE11 everything works fine, on several - it gives an error "The action cannot be performed. Error c00ce56e. String ..." Swears at "xmlhttp.responseText". Browsers are all the same version. Problematic machines have previously been in some kind of container with IE security settings through policies. The cars returned from there, but the settings remained. The site was added to the trusted zone, the settings for all zones were set to the minimum - nothing helps. Tell me, in which direction to dig? Rearranging Windows or Explorer on machines will not work. Brush them off - too, "key internal customers." There are a lot of containers, a politician - even more. Where they have been in recent years and what they were specifically used to find out will not work.

PS Several different versions of jQuery from 2.2 to 3.1 don't work on these particular machines either. They swear at various functions, depending on the version of jQuery, but it didn’t work on any of them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2016-11-08
@GreatRash

I don't like the encoding of the file. I'll show you how to google .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question