473,385 Members | 1,843 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.

dojo 1.1.2 fails in firefox 3.0.5

Hi all,

I have deployed dojo toolkit source in secure server like https://xyz.com, I have executed my jsp page in firefox , Its throws the error the error is :

failed loading https://xyz.com/dojoTK/v1.1/dijit/form/Button.js with error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location:
"https://xyz.com/dojoTK/v1.1/dojo/dojo.js Line: 20"]boxes (line 34)

My jsp code is :
Expand|Select|Wrap|Line Numbers
  1.  
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  3. "http://www.w3.org/TR/html4/strict.dtd"> 
  4. <html> 
  5. <head> 
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
  7.  
  8. <title>TextBoxes Demo From WEB SERVER</title> 
  9.  
  10. <link rel="StyleSheet" type="text/css" href="https://xyz.com/dojoTK/v1.1/dijit/themes/soria/soria.css"> 
  11. <link rel="StyleSheet" type="text/css" href="https://xyz.com/dojoTK/v1.1/dojo/resources/dojo.css"> 
  12.  
  13. <script type="text/javascript"> 
  14. var djConfig = { 
  15. baseScriptUri : "v1.1/dojo/", 
  16. parseOnLoad : true 
  17. }; 
  18. </script> 
  19.  
  20. <script type="text/javascript" src="https://xyz.com/dojoTK/v1.1 /dojo/dojo.js"></script> 
  21. <script> 
  22. dojo.require("dojo.parser"); 
  23. dojo.require("dijit.form.DateTextBox"); 
  24. dojo.require("dijit.form.TextBox"); 
  25. dojo.require("dijit.form.Button"); 
  26. </script> 
  27. </head> 
  28. <body class="tundra" bgcolor=""> 
  29. <br> 
  30. <br> 
  31. <h1 align="center"><b><font face="Times" color="#800000">Testing TextBox</font></b></h1> 
  32. <br> 
  33. <table align="center" bgcolor="" width="300px" height="200px"> 
  34. <tr> 
  35. <td>TextBox</td> 
  36. <td class="tundra"><input type="text" name="firstname" value="testing" 
  37. dojoType="dijit.form.TextBox" class="medium" 
  38. trim="true" 
  39. propercase="true" /> 
  40.  
  41. </td> 
  42. </tr> 
  43. <tr> 
  44. <td class="soria">Date TextBox</td> 
  45. <td > 
  46. <input type="text" name="date1" value="2005-12-30" 
  47. dojoType="dijit.form.DateTextBox" 
  48. required="true" 
  49. promptMessage = "Please Select the Date!"/> 
  50. </td> 
  51. </tr> 
  52. </table> 
  53. <br> 
  54. <button dojoType="dijit.form.Button" 
  55. iconClass="dijitEditorIcon dijitEditorIconRedo" 
  56. onClick="alert('Clicked!');"> 
  57. SAVE 
  58. </button> 
  59.  
  60. <br> 
  61.  
  62. <button dojoType="dijit.form.Button" 
  63. iconClass="dijitEditorIcon dijitEditorIconSave" 
  64. onClick="alert('Clicked!');"> 
  65. SAVE 
  66. </button> 
  67. </body> 
  68.  
  69. </html> 
  70.  
Key Points:

Dojo version : 1.1.2
FireFox version : 3.0.5

I have searched in WWW but still can't get correct solution.

So kindly give your suggestion ASAP.


Thanks,
P. Kumaran
Apr 9 '10 #1
5 4040
chathura86
227 100+
are you getting this error only for firefox?

what are the browser which this works?

Regards
Apr 9 '10 #2
Hi,

Thanks for your reply.

I have checked only in IE 6.0 Browser.

Its working fine in IE 6.0 browser.

Thanks
P.Kumaran
Apr 9 '10 #3
chathura86
227 100+
seems like a security issue

check this

http://jquery-howto.blogspot.com/200...nied-code.html
Apr 9 '10 #4
Hi chatura86,

thanks for your quick reply.

I have seen that url. i got the resolution about that error.

I have implemented my projects in different domain,

The core of java code and jsp in one server like http://abc.com and my dojo toolkit in another secure server like https://xyz.com. So from the link I have understood Firefox does not allow accessing resources from other domains.

thanks the lots.

Regards,

P.Kumaran
Apr 9 '10 #5
chathura86
227 100+
what you can do is send the js request to your server (http://abc.com ) and it will get the resource from https://xyz.com and send to browser (kind of a proxy)

so browser will not know you are getting them form another domain

Regards
Apr 9 '10 #6

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

Similar topics

14
by: David Blickstein | last post by:
I have some XML documents that I want to open in a web browser and be automatically translated to HTML via XSLT. I'm using an xml-stylesheet processing command in a file called "girml.xml". ...
0
by: Brian | last post by:
Hi, I've been trying to get a simple client / script callback to work. I was using IE6 to the ASP Development Server / IIS 5 and it just didn't work. I ended up using an example straight from an...
15
by: plsHelpMe | last post by:
Hi All, I am having a problem. I am using DOJO toolkits to fetch some data on my webpage. Now suppose if i leave my webpage for some time and the session gets expired and then i try to click on...
3
by: ygjyothi | last post by:
Hi All, I'm trying to integrate Ext2.0 and Dojo 1.0 i.e the selected rows from a Ext 2.0 Grid upon a button click should generate a Dojo 1.0 Chart in a pop up window or Ext.window.There is a Ext...
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...
5
by: gaya3 | last post by:
Hi, can anyone find error in the following example <%@ include file="JspBean.jsp" %> <%@ page import="java.util.*"%> <html> <head> <%
2
by: pincopallo_it | last post by:
I started using dojo for my AJAX application . i need really a selectbox which read a json file and that with the onchange() modify a second select box. I tried using the filtering select of dojo...
1
by: kokababu | last post by:
I am trying to load dojo module from different domain; such as dojo.parser, dijit.form.TextBox etc. <html> <head> <script type="text/javascript"> djConfig = { isDebug: true,...
1
by: ashutoshjoshi10 | last post by:
Hi, I am using a Dijit.form.filteringSelect to display values using the dojox.data.QueryReadStore. But, after overriding _filterResponse() to format the data in a Dojo-parsable format, whatever...
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:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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.