473,385 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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>
  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_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 3950
acoder
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

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

Similar topics

25
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...
9
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...
11
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...
0
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...
6
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...
7
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...
1
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...
1
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.