Using layout dijits not working when using Esri JS API

438
2
Jump to solution
06-05-2013 08:03 AM
KenBuja
MVP Esteemed Contributor
I'm playing around with layouts using an example from the Dojo documentation. It works properly when using the dojo.js source, but when I use the Esri 3.5 API, it doesn't work. Here's a fiddle showing the layout. Why isn't it working properly with the 3.5 API?
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor
Looks like you are running into this issue outlined in the 'What's New at 3.3' help topic. If you remove lang=en your fiddle works.

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::parse() 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:7 http://trac.dojotoolkit.org/ticket/15768#comment:6

View solution in original post

0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
Looks like you are running into this issue outlined in the 'What's New at 3.3' help topic. If you remove lang=en your fiddle works.

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::parse() 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:7 http://trac.dojotoolkit.org/ticket/15768#comment:6
0 Kudos
KenBuja
MVP Esteemed Contributor
Thanks, Kelly, I had forgotten about that.
0 Kudos