I am using dojo 1.1.1 with the xdomain built from AOL. In addition, I got some custom classes that I load from my own domain. After some initial problems with the xodmain build, it now loads my local classes correctly and I can still use the aol cdn.
One final exception I get is this:
uncaught exception: Could not load cross-domain resources:
init_request()us (line 90)
getAlert()us (line 205)
us()us (line 370)
[Break on this error] xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
My djConfig loks like this:
<script type="text/javascript">
var djConfig = {
parseOnLoad: true,
noFirebugLite: true,
isDebug: true,
debugHeight: 100,
popup:false,
baseUrl: "../",
modulePaths: {
"aditor": "js/aditor",
},
xdWaitSeconds: 10,
dojoBlankHtmlUrl : '/ymax/js/aditor/blank.html'
};
var djConfig = {
parseOnLoad: true,
noFirebugLite: true,
isDebug: true,
debugHeight: 100,
popup:false,
baseUrl: "../",
modulePaths: {
"aditor": "js/aditor",
},
xdWaitSeconds: 10,
dojoBlankHtmlUrl : '/ymax/js/aditor/blank.html'
};
Anyone the same problem?
Thanx Sven

The "Could not load
The "Could not load cross-domain resources:" normally lists the modules it could not load, but it looks like it is a blank string for you?
Are there any dojo.require calls in the init_request() mentioned in that stack trace?
Here is an example showing how to load local code with xdomain code:
http://jburke.dojotoolkit.org/demos/xdlocal/LocalAndXd.html
Zip file of the example:
http://jburke.dojotoolkit.org/demos/xdlocal/xdlocal.zip
But it sounds like you got it working, at least partially. Nothing looks obviously wrong in the djConfig you posted, but it would be good to know about any dojo.require calls related to init_request, or anywhere in that stack trace.
IE7 does not like cross-domain resources, even in the example ab
I am looking for a correct working example of using AOL's distribution of dojo, together with modules from a local server.
JBurke's example works fine in FireFox, but fails completely in IE7, giving an "Expected identifier, string, or number" error on line 21 which is the big minified dojo line, so it is not helpful.
Does anyone have any ideas on how to resolve this problem?
Thanks.
Sorry about that -- I had a
Sorry about that -- I had a trailing comma in the djConfig.modulePaths section. I updated the example page and the zip file.
Could not load cross-domain resources solved
My original problem was solved, the issue was really simple. I use GFX and therefore the AOL CDN website does have another speical dojo_gfx build as there are issues to load it dynamically. I simply forgot to remove the other dojo.js script and the two dojo.js and dojogfx.js had some issues.
For anyone looking for an AOL CDN Xdomain dojo with local dojo classes/ widgets, the above djConfig did the job. The important point is to add the baseUrl and modulePaths keys. I tried to use dojo.registerModulePath first and that just did not work. I guess it was too late in the init procedure.
As my app just has to run in FF2+, I cannot comment about the IE issues.
Cheers
Sven
---
Sven Haiges
Subscribe to the Grails Podcast: http://hansamann.podspot.de/rss
Skype: hansamann