Select to view content in your preferred language

versioning of dojo.

3878
11
12-10-2013 09:19 AM
DorothyMortenson
Deactivated User
I have made two applications that I want to combine.
The first was a test to develop the web map I want.  I use the
<script src="http://js.arcgis.com/3.7/"></script>


The second is one that I developed with the dijit/layout/BorderContainer, ContentPane, TabContainer, TabController, AccordionContainer. In other words, the second has all of the panels laid out. Looks nice.  It uses
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.js"></script> 
I have also tried it with
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojo/dojo.js"></script> 

Both work.

When I try to put even a simple map into the second application, and have to add the
<script src="http://js.arcgis.com/3.7/"></script>
, the layout goes bad, like it doesn't know what to do with the containers.

Any suggestions?
Dorothy
0 Kudos
11 Replies
KellyHutchins
Esri Notable Contributor
Dorothy,

There is an issue with using lang="en" along with layout dijits. If you remove this from your test case the app loads correctly when using the JSAPI. You can find more details on the problem by viewing the post by Adrian Marsden in this thread:

http://forums.arcgis.com/threads/74483-ESRI-Javascript-API-3.3

Here's the relevant bit:

Using lang="en" can break apps that use when using layout dijits and data-dojo-config(or dojoConfig) locale or extraLocale is not set. The recommended fix is to set locale or extraLocale on data-dojo-config or remove the lang="en" attribute. The specific error seen when this is an issue is "dojo/parser:arse() error TypeError" in Chrome and "TypeError: _72f(...) is undefined" in Firefox. More information is available in the Dojo bug tracker:http://trac.dojotoolkit.org/ticket/15630#comment:7http://trac.dojotoolkit.org/ticket/15768#comment:6
0 Kudos
DorothyMortenson
Deactivated User
You gotta be kidding me. Stick a sharp stick in my eye.

Thank you so much! I NEVER would have found that.

You just made my day.
0 Kudos