By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,983 Members | 1,627 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,983 IT Pros & Developers. It's quick & easy.

about Cross Domain Dojo Resource Loading

P: 39
I am trying to load dojo module from different domain; such as dojo.parser, dijit.form.TextBox etc.

Expand|Select|Wrap|Line Numbers
  1.  <html>
  2.     <head>
  3.        <script type="text/javascript">
  4.         djConfig = {
  5.             isDebug: true,
  6.             parseOnLoad: true,
  7.             xdWaitSeconds: 10
  8.         };
  9.       </script>
  10.     <script type="text/javascript" src=""></script>
  11.     <script type="text/javascript">
  12.         dojo.registerModulePath("dojo", "");
  13.         dojo.require("dojo.parser");
  14.                 dojo.require("dijit.form.TextBox");
  15.     </script>
  17.     <script type="text/javascript">
  18.         dojo.addOnLoad(function(){
  19.             alert("Loaded");
  20.         });
  21.     </script>      
  22.     </head>
  23.     <body>
  24.     </body>
  25. </html>
But I am getting error from FireFox 3:

failed loading with error [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: " Line: 16"]

I am not sure what I am missing here. I followed the example listed
on the dojo site:

Can anyone please help me about this issue?
Feb 25 '09 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Three points:

1. Have you followed all the steps, particularly the last section at the bottom: Making a "XDomain" build?

2. The example is different: you don't have useXDomain set to true in the config, for example.

3. It seems to be complaining about firebug. Try disabling it to see if it makes a difference.
Feb 26 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.