Web UI plugin works in FF but not IE
Does the Web UI team have any thoughts on why a web ui plugin's widget would be displayed properly on Firefox but with IE 6 would get a dojo namespace error?
The JS error dialog on IE says the following:
Could not locate widget implementation for 'widgetname' in "dojo.widget" registered to namespace "dojo"
The same exact code works fine and with no load problems on FF.
The JS error dialog on IE says the following:
Could not locate widget implementation for 'widgetname' in "dojo.widget" registered to namespace "dojo"
The same exact code works fine and with no load problems on FF.
3 answers
IE6 is known to be pickier about the syntax of the javascript. You can
get away with some invalid syntax in FireFox but IE will give errors.
One of the most common ones I have seen is having a comma on the last
property definition in an object :
dojo.declare("xxx", dijit.Tree, {
getIconClass: function(item){
return this.store.getValue(item, "icon");
},
onClick: function(item) {
console.debug("item clicked");
},
});
The comma at the end of the onClick function definition will cause this
code to fail to load in IE6
Richard
rnaranjo wrote:
get away with some invalid syntax in FireFox but IE will give errors.
One of the most common ones I have seen is having a comma on the last
property definition in an object :
dojo.declare("xxx", dijit.Tree, {
getIconClass: function(item){
return this.store.getValue(item, "icon");
},
onClick: function(item) {
console.debug("item clicked");
},
});
The comma at the end of the onClick function definition will cause this
code to fail to load in IE6
Richard
rnaranjo wrote:
Does the Web UI team have any thoughts on why a web ui plugin's widget
would be displayed properly on Firefox but with IE 6 would get a dojo
namespace error?
The JS error dialog on IE says the following:
Could not locate widget implementation for 'widgetname' in
"dojo.widget" registered to namespace "dojo"
The same exact code works fine and with no load problems on FF.