Select to view content in your preferred language

Custom dojo and dojox/gfx/createSurface.xd.js not found

2315
11
11-04-2011 05:04 AM
RafaelCoutinho
New Contributor
For some reason i get this error when opening the map using custom dojo (ersiDojo):

"NetworkError: 404 Not Found - http://serverapi.arcgisonline.com/jsapi/arcgis/2.5/js/dojo/dojox/gfx/createSurface.xd.js"
create...e.xd.js
uncaught exception: Could not load cross-domain resources: dojox.gfx.createSurface

Not sure why but there's something related with my dojo version... Does any had anything like that
0 Kudos
11 Replies
derekswingley1
Deactivated User
I don't know about that. Sounds like a good way for a programmer to go bald. And I think it would be a nightmare to maintain.


I agree about it being a maintenance nightmare. Using multiple versions of dojo should never be a long term solution. It's feasible for quick, short term prototyping but for anything beyond a proof of concept, I wouldn't recommend it. The old "just because you can, doesn't mean you should" cliche applies.
0 Kudos
RyanMuller
Occasional Contributor
I agree about it being a maintenance nightmare. Using multiple versions of dojo should never be a long term solution. It's feasible for quick, short term prototyping but for anything beyond a proof of concept, I wouldn't recommend it. The old "just because you can, doesn't mean you should" cliche applies.


Fortunately I realized this without wasting too much time getting it working. I've reverted to just the JSAPI and the included dojo 1.6.1. I understand it's a big change to switch the JSAPI over to 1.7 but it's still rather frustrating being stuck at 1.6.1 especially given the doc-a-thon that dojo just went through for 1.7 which is greatly improving documentation and the knowledgebase for that version.
0 Kudos