Problem using custom dojo widgets in dashboard viewlets inIE
Hi,
I have a dashboard viewlet where I am trying to include custom dojo packages using dojo.require statement. I call new CustomWidget() from my methods in the viewlet and show them up in a dialog. This works well in Firefox but not in IE.(we are using IE 7 and higher versions). IE reports an error saying Could not load "my custom widget pkg name"" Please suggest any work arounds for using dojo.require("my custom widget package") in IE. Thanks. |
2 answers
I have a dashboard viewlet where I am trying to include custom dojo dojo.require itself is most likely not the problem. It could be something in your CustomWidget implementation that IE doesn't like. The classic problem is a trailing comma, e.g. { foo: {...}, bar: {...}, } This will cause an error in IE but not FF. It should be corrected to { foo: {...}, bar: {...} } jslint will detect this problem. -- Regards, Patrick Jazz Work Item Team |
It could also be the same problem in one of its dependencies. Adding "?debug=true" might give you more debug info.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.