471,863 Members | 1,182 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,863 software developers and data experts.

about Cross Domain Dojo Resource Loading

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="http://somedomain.com/toolkit/dojo-release-1.2.3/dojo/dojo.js"></script>
  11.     <script type="text/javascript">
  12.         dojo.registerModulePath("dojo", "http://somedomain.com/toolkit/dojo-release-1.2.3/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 http://somedomain.com/toolkit/dojo-r...bug/firebug.js with error [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://somedomain.com/toolkit/dojo-release-1.2.3/dojo/dojo.js Line: 16"]

I am not sure what I am missing here. I followed the example listed
on the dojo site: http://www.dojotoolkit.org/node/17

Can anyone please help me about this issue?
Feb 25 '09 #1
1 3834
16,027 Expert Mod 8TB
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.

Similar topics

25 posts views Thread by VA | last post: by
9 posts views Thread by permanent.tourist | last post: by
6 posts views Thread by Bart Van der Donck | last post: by
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.