Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
It could also be the same problem in one of its dependencies. Adding "?debug=true" might give you more debug info.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,939

Question asked: Jan 21 '10, 12:47 a.m.

Question was seen: 7,752 times

Last updated: Jan 21 '10, 12:47 a.m.

Confirmation Cancel Confirm