This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes dojo 1.1.2 fails in firefox 3.0.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

dojo 1.1.2 fails in firefox 3.0.5

kumaran panneerselvam
Greenhorn

Joined: Apr 07, 2010
Posts: 3
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/dojo/../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 :


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>TextBoxes Demo From WEB SERVER</title>

<link rel="StyleSheet" type="text/css" href="https://xyz.com/dojoTK/v1.1/dijit/themes/soria/soria.css">
<link rel="StyleSheet" type="text/css" href="https://xyz.com/dojoTK/v1.1/dojo/resources/dojo.css">

<script type="text/javascript">
var djConfig = {
baseScriptUri : "v1.1/dojo/",
parseOnLoad : true
};
</script>

<script type="text/javascript" src="https://xyz.com/dojoTK/v1.1 /dojo/dojo.js"></script>
<script>
dojo.require("dojo.parser");
dojo.require("dijit.form.DateTextBox");
dojo.require("dijit.form.TextBox");
dojo.require("dijit.form.Button");
</script>
</head>
<body class="tundra" bgcolor="">
<br>
<br>
<h1 align="center"><b><font face="Times" color="#800000">Testing TextBox</font></b></h1>
<br>
<table align="center" bgcolor="" width="300px" height="200px">
<tr>
<td>TextBox</td>
<td class="tundra"><input type="text" name="firstname" value="testing"
dojoType="dijit.form.TextBox" class="medium"
trim="true"
propercase="true" />

</td>
</tr>
<tr>
<td class="soria">Date TextBox</td>
<td >
<input type="text" name="date1" value="2005-12-30"
dojoType="dijit.form.DateTextBox"
required="true"
promptMessage = "Please Select the Date!"/>
</td>
</tr>
</table>
<br>
<button dojoType="dijit.form.Button"
iconClass="dijitEditorIcon dijitEditorIconRedo"
onClick="alert('Clicked!');">
SAVE
</button>

<br>

<button dojoType="dijit.form.Button"
iconClass="dijitEditorIcon dijitEditorIconSave"
onClick="alert('Clicked!');">
SAVE
</button>
</body>

</html>



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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

When posting code please UseCodeTags (⇐ that's a link) not colored text.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dojo 1.1.2 fails in firefox 3.0.5
 
Similar Threads
access denied in firefox when loading the dojo components from https
DOJO - Support IE 6?
Dojo 1.1.2 Can't loaded in Firefox 3.5.5 browser
DOJO Grid and JSON
DOJO -calendar