473,587 Members | 2,320 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>
  16.  
  17.     <script type="text/javascript">
  18.         dojo.addOnLoad(function(){
  19.             alert("Loaded");
  20.         });
  21.     </script>      
  22.     </head>
  23.     <body>
  24.     </body>
  25. </html>
  26.  
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 3965
acoder
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

25
3252
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...
9
5434
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
11
5981
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...
0
1267
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...
6
5473
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. --
7
6955
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...
1
2024
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...
1
3793
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...
0
7918
marktang
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...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
Oralloy
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. ...
0
8340
jinu1996
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...
1
7967
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...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.