cvradis

Error migrating from 2.2 to 2.3 of the JS API

Discussion created by cvradis on May 23, 2011
Latest reply on Jun 1, 2011 by cvradis
Hi,
I have built a web app using the ArcGIS Javascript version 2.2 which works perfectly on Internet Explorer, Firefox, Chrome, Safari and Opera both in Windows XP/Vista and Linux Ubuntu. I have also tested the app with the 2.1 version an still works great.

But when I tried to use the 2.3 version of the JS API I got the following errors from nearly all browsers and both OSs:

Firefox 3.5.17
Error: word is undefined
Code: http://serverapi.arcgisonline.com/jsapi/arcgis/2.3/js/dojo/dijit/dijit.xd.js
Line: 14

Safari:
TypeError: Result of expression 'word' [undefined] is not an object. (dijit.xd.js:14)

Chrome
Uncaught TypeError: Cannot call method 'substring' of undefined (dijit.xd.js:14)

Internet Explorer 9:
SCRIPT5007: Cannot call method 'substring' : object is null or undefined  -
dijit.xd.js, line 14 character 56410
(last message is a rough translation from Greek, as I use the greek version of IE9)

It seems that this has to do with the dojo/dijit library and probably with some difference between version 1.5 and 1.6 ... or not? I can't be sure.

Any help or suggestions would be greatly appreciated...

Thanks in advance
Christoforos

Outcomes