Select to view content in your preferred language

ESRI Sample Not Working in IE

485
4
07-16-2013 08:46 AM
friskyweasel
New Contributor
hi all -

Can anyone confirm if these samples are supposed to work correctly in IE or not?

http://serverapps.esri.com/templates/

I based a design off of these samples, and spent quite a while attempting to get them to work in IE without success. Finally, I gave up and went back to the original ESRI url and tried loading it in IE - turns out I saw all the same broken behavior on ESRI's URL also : (

I am using IE 9 - what i'm seeing is the layout DIV (ContentPane's) don't align correctly with the map, and I'm also unable to click and drag the map.

Everything works perfectly in Chrome and Firefox by the way. Can anyone shed some light on this? Or offer an alternate set of samples to work from?
0 Kudos
4 Replies
MarcusBush
New Contributor
I don't know if it should matter or not, but I was surprised to see version 1.2 of the JSAPI being used in those samples.

Are you using the latest?

I also got the same issues you did, using IE 10.
0 Kudos
JonathanUihlein
Esri Regular Contributor
These samples are very old (they are using version 1.2 of the API, instead of 3.5).

Check the recently-updated API for samples and tutorials.

This is a good start:
https://developers.arcgis.com/en/javascript/jstutorials/intro_firstmap_amd.html

Hope this helps.
0 Kudos
friskyweasel
New Contributor
ah ok thanks guys - yes I'm sure that probably has something to do with my issues. Also thanks jon for the helpful link - I will give it a try.
0 Kudos
JonathanUihlein
Esri Regular Contributor
No problem!

You'll notice very quickly that a lot of the samples and tutorials on the API are using an older implementation of Dojo.

However, the new AMD style of Dojo is highly recommended and works very well with the newest version of the JSAPI.

This link is very helpful is discussing the new AMD style that Dojo is promoting:
https://developers.arcgis.com/en/javascript/jshelp/whats_new.html

Let me know if you have any questions.
0 Kudos