It's all about the answers!

Ask a question

Problem using custom dojo widgets in dashboard viewlets inIE


geetu garg (81412) | asked Jan 21 '10, 12:47 a.m.
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



permanent link
Patrick Streule (4.9k21) | answered Jan 21 '10, 8:23 a.m.
JAZZ DEVELOPER
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.

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

permanent link
Curtis d'Entremont (1.3k3) | answered Jan 29 '10, 11:40 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
It could also be the same problem in one of its dependencies. Adding "?debug=true" might give you more debug info.

Your answer


Register or to post 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.