Opened 14 years ago
Closed 14 years ago
#6950 closed defect (invalid)
Error: Bundle not found: loading in dijit , locale=en' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
Reported by: | guest | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 1.1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Hi,
I built my dojo files with the profile below:
dependencies = {
layers: [
{
name: "dojo.js", dependencies: [
"dojo._base"
]
},
{
name: "dojo-packaged.js", layerDependencies: [
"dojo.js"
], dependencies: [
"dojo.parser", "dojo.string", "dojo.fx", "dojo.date", "dojo.cookie", "dojo.io.script", "dojo.io.iframe", "dojo.date.locale", "dojo.regexp",
"dojox.data.dom", "dojox.grid.Grid",
"dijit.Dialog", "dijit.Editor", "dijit.form.ComboBox?", "dijit.Menu",
"dijit.Dialog", "dijit.form.Button", "dijgit.form.CheckBox?", "dijit.form.ValidationTextBox?", "dijit.form.Textarea", "dijit.form.TextBox?", "dijit.form.numberTextBox", "dijit.layout.ContentPane?", "dijit.layout.TabContainer?"
]
},
prefixes:
[ [ "dijit", "../dijit" ], [ "dojox", "../dojox" ],
]
}
I defined the djConfig in JS file as below:
if(!thisdjConfig?)
{
djConfig = { baseUrl: "./", parseWidgets: true};
}
and I called dojo in HTML page as belwo:
<script type="text/javascript" src="..dojo/dojo.js" djConfig="parseOnLoad: true"></script>
<script type="text/javascript" src="../dojo/dojo-packaged.js"></script>
However, when I loaded the HTML page, dojo exception occured:
[Exception... "'Error: Bundle not found: loading in dijit , locale=en' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
Why this exception occured? is it because something wrong with the profile file or the djconfig ?
please use the forums for support