Select to view content in your preferred language

Dijit css location?

796
2
11-02-2011 01:28 PM
NathanParis
New Contributor
I had to upgrade an old app that was using JS 1.5 to JS 2.5.  I pointed to the css to:

http://serverapi.arcgisonline.com/jsapi/arcgis/1.6/js/dojo/dijit/themes/soria/soria.css

There were a few issues with the old code, but also was some issue I just couldnt figure out why they werent working, when I realized the css above provided by esri doesnt even have some of the needed Dojo 1.6 styles.  For example .dijitOffScreen is not in the css.

So I point to http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dijit/themes/soria/soria.css

and everything works.

It doesn't matter which CDN I use, but seems like the esri one isn't even correct.  Is that one not suppose to be used?

Thanks
0 Kudos
2 Replies
derekswingley1
Deactivated User
The version in the URL needs to be changed to the JS API version. Here's the one for 2.5:  http://serverapi.arcgisonline.com/jsapi/arcgis/2.5/js/dojo/dijit/themes/soria/soria.css

the dijitOffScreen class is defined in that file.
0 Kudos
NathanParis
New Contributor
Thanks, was going of the old code.
0 Kudos