473,574 Members | 5,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

about Cross Domain Dojo Resource Loading

39 New Member
I am trying to load dojo module from different domain; such as dojo.parser, dijit.form.Text Box 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_B AD_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 3963
16,027 Recognized Expert Moderator MVP
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

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

Similar topics

by: VA | last post by:
This has come up before but I am not sure if the latest versions of IE and FF change the answer. A script running on a webpage served up by http://foo.something.com should be able to do xmlhttp.open("GET","http://bar.something.com",true) But in Firefox 1.5, I get the Permission denied error Why is this? The domain is something.com so I...
by: permanent.tourist | last post by:
I'm having a hell of a job getting this to work in Safari: the only thing I can think of is that one can't use reload() across to another frame for security reasons. Does anyone have a concrete answer or solution for this? I'm trying to do this: top.frames.location.reload(); Thanks Mark Howells www.permanenttourist.ch
by: f.ruecker | last post by:
Hey Guys, I've done my research for a script that dynamically adjusts the height of the Iframe, but none of the scripts have the features, which I all need. Maybe one of you can help me: 1. The site contained in the Iframe is no on the same Domain nor Server as the main page 2. I can't put any code in the Iframe (YES, I do have...
by: KZSteele | last post by:
(repost/edit from html forum) hello - i am using VBA within a microsoft access project to automate internet explorer. what i am doing is reading data from various frames of my company's web site (non-intranet) and loading it into a table. however, this cross-frame scripting security with IE is getting in the way. i can't even use VB to...
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or suggestions are welcome. --
by: raknin | last post by:
Hi, Hi, Now that I am handle the way of use the dojo combobox I moving to the next stage. What I want to do is updating a second combobox automatically when a value is selected in the first combobox. I have a php that can handle the server side. Any suggestion how it can be done with dojo. I believe the code below can help other to start a...
by: gaya3 | last post by:
All, Can anyone say how to load the javascript from jsp using dojo.require.. I have tried like dojo.require("sample1.ex1.dojoJs"); But it failed to load... Anyone pl help... Thanks in Advance...
by: Snolly | last post by:
Hi all, I am using the open source dojo toolkit v .4.3 (I know it's old but can't upgrade). I have a page with an iframe in it. When the page loads, the iframe is pointing at a local resource (i.e. another page on the same server). The iframe is then navigated to an external resource (a page from another server). At this point...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.