I have a javascript api site that performs well in every browser but IE 11. In IE 11 it refuses to create a new IdentifyTask, among other things. I just get "Object doesn't support this action". Chrome, Firefox, tablet browsers all seem to work fine with the same code. Is this an IE thing? What can I do about it?
Thanks
Solved! Go to Solution.
Hi Brent, I talked to Marla from ESRI support. The problem with it was that the IE mode settings were set to 7. So I'm going to talk with our system administrators to see if they can up that to edge which is the mode for the most current version, in this case, IE 11.
We added a meta tag in the index.html- placed it right under the content type meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10, IE=11" />
Also made sure the script tag was set as follows in the index.html:
script src="http://js.arcgis.com/3.14/"></script>
Now it works!
Happy,Happy,Happy!
Sonia
Yes the ArcGIS API for JavaScript supports IE11. Can you post the code you are trying to use?
I think I may have solved it by placing the script tag for the javascript file that initializes the map as the very last script tag in the <head> section.
I need to do some further testing to see if this actually solved it.
The frustrating thing is that, in the debugger, IE works just fine. Only when I published did the problems occur.
Thanks
Brent
I have the same problem. I downloaded the zip file for ed_simpletoolbar and when I use it in IE11, it gives me an error - line 268 object doesn't support this action When I access the same app from the esri site, the error doesn't come up in IE11. http://developers.arcgis.com/javascript/samples/ed_simpletoolbar/ So what is the difference? The index.html is the same- the problem is in
<script src="http://js.arcgis.com/3.14/"></script>
Thanks for any advice.
Sonia
I just place the init.js at the end of the declaration and it works all the time for all browsers (so far).
Brent
<script src="http://js.arcgis.com/3.14/init.js"></script>
Thanks for clarifying that. I tried adding the script name just like you've shown but it still doesn't work in IE11.
I now get a different error:
SCRIPT5007: The value of the property 'require' is null or undefined, not a Function object
which is making reference to the require section from the index script.
<script>
var map;
require([ "esri/map", . . . .
Thank you for any advice,
Sonia
Interesting. It went the opposite way for me. Before I added the init.js, I got the 'require' is undefined.
see https://community.esri.com/message/456716#456716
Try running on a different PC. Sometimes IE can get all bugged up on one PC and work just fine on another. Seems to be the nature of the beast.
Are you loading other scripts such as jquery? If that is the case you may want to use the "defer" keyword
script defer type="text/javascript" src="http://js.arcgis.com/3.13/init.js"></script>
Also note that, if you do this, all other scripts referencing ArcGIS must also be defer loaded.
Good Luck
Brent
Hi Brent, I talked to Marla from ESRI support. The problem with it was that the IE mode settings were set to 7. So I'm going to talk with our system administrators to see if they can up that to edge which is the mode for the most current version, in this case, IE 11.
We added a meta tag in the index.html- placed it right under the content type meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10, IE=11" />
Also made sure the script tag was set as follows in the index.html:
script src="http://js.arcgis.com/3.14/"></script>
Now it works!
Happy,Happy,Happy!
Sonia