Select to view content in your preferred language

Dojo/require is Undefined in IE 9 (works fine in Chrome and FF)

7006
11
Jump to solution
02-26-2015 08:29 AM
PhilipKnight1
Regular Contributor

Using nothing but a simple sample from ESRI (StreamLayer using ArcGIS API for JavaScript and ArcGIS GeoEvent Processor for Server ) I get an error saying "require is undefined". I also get 'dojo is undefined' if I use the classic method (TOC ) but that example is not by the developers of ESRI.

This happens on a client machine, but works just fine on my machine as well.

I have tried compatibility mode on and off with no success: I keep getting the exact same error. If I use code that that use the 3.1 API it seems to work just fine. But there seems to e something about the new version of dojo in 3.12 that is causing errors for me.

0 Kudos
1 Solution

Accepted Solutions
PhilipKnight1
Regular Contributor

Thank you for the helpful information. I found the cause:

I had to enable "Active Scripting" in Tool -> Internet Options -> Security Tab -> Custom Level

I also had to run-as-administrator IE to be able to change those settings.

I'm surprised that there wasn't an issue when running version 3.1 of ESRI's API.

View solution in original post

0 Kudos
11 Replies
KellyHutchins
Esri Frequent Contributor

Philip are you running the sample locally or are you testing via the developers.arcgis.com url?

0 Kudos
PhilipKnight1
Regular Contributor

Testing via the url.

0 Kudos
KellyHutchins
Esri Frequent Contributor

Do you get the same errors with other samples? Here's a super simple one that would be good to test:

Simple Map

0 Kudos
PhilipKnight1
Regular Contributor

Yes, that also causes the exact same error I described. I have tried numerous other examples and they all fail in the same way, unless the API used is 3.1. All 3.12 examples I've tried have the same error.

0 Kudos
KellyHutchins
Esri Frequent Contributor

Strange. I tested both samples on IE9 and it worked for me. It sounds like you have one IE9 machine where it works and one where it doesn't is that correct? If so maybe try comparing browser settings to see if there are any differences. Also look for any add-ons that may be enabled on the problem browser and try disabling them to see if the issue goes away.

PhilipKnight1
Regular Contributor

That is correct. Do you have any suggestions on what settings may cause this. I don't see any add-on's for the browser.

0 Kudos
KellyHutchins
Esri Frequent Contributor

Sorry not sure which settings may be causing the problem. For starters check that the document mode is the same on the problem browser as the one that works.

Document Mode in Internet Explorer

0 Kudos
ChrisSergent
Deactivated User

Do you get the errors when you try Esri's examples online in different browsers as well? Are you still getting require not defined?

0 Kudos
PhilipKnight1
Regular Contributor

No. The issue only happens in ie ever and only on the clients machine. Yes

the error still occurs.

0 Kudos