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
- <!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>
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