Select to view content in your preferred language

JSAPI local install and xdomain errors

707
1
02-03-2011 07:35 AM
Adrian_R_Barbosa
Deactivated User
Well, from this post

http://forums.arcgis.com/threads/22513-JSAPI-error-in-JBoss-(dojo)

to now I´ve made changes and tests and discovered that the JSAPI truncation occurs in the file

arcgis_js_api/library/2.1/arcgis/index.jsp, in the line <jsp:include page="js/esri/jsapi.js" />.

So, I decided to get that files "by hand", using XHR (ugly but works).
No truncation anymore and seems that these problems are gone.

Now, the app goes a little more but doesn´t show the map and the TOC.

And few seconds later, the xdomain error pops again, but for another files (see image attached).

How to solve this?
already two days since I'm stuck with this problem...

Pls help!

Adrian Barbosa
http://www.copel.com
0 Kudos
1 Reply
NilsRydh
Deactivated User
Have you installed the local version of the JSAPI from the FAQ?
Seems like there is still something in your html that is calling an external server.
Can you post the <head> section of the generated html page?
0 Kudos