Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

dojo 1.1.2 fails in firefox 3.0.5

 
kumaran panneerselvam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
When posting code please UseCodeTags (⇐ that's a link) not colored text.
 
    Bookmark Topic Watch Topic
  • New Topic