Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#7335 closed defect (invalid)

dijit.form.DateTextBox not rendered in IE

Reported by: rboy Owned by:
Priority: high Milestone: tbd
Component: Dijit - Form Version: 1.1.0
Keywords: dijit.form.DateTextBox IE render Cc:
Blocked By: Blocking:

Description

Hi , I have this problem during dev. using dojo I've 3 tabs in a tabcontainer , each one containing a form and the last 2 tabs contained a input field which I want them to be "dijit.form.DateTextBox?" with a Calendar widget. So I use

setAttribute("dojoType","dijit.form.DateTextBox?");

to make them so. But things in tab2 is ok ,but in tab3 the attribute was set but not rendered. This problem only happens in IE

Change History (5)

comment:1 Changed 11 years ago by bill

Resolution: invalid
Status: newclosed

That's not the way to instantiate; you should read the dojo book (accessed through the main website, dojotoolkit.org) for information on programmatic instantiation.

comment:2 Changed 11 years ago by rboy

Resolution: invalid
Status: closedreopened

Thank you for your reply, I now switched in the "new Something" method to declare. But in FF , I used a lot of "setAttribute("dojoType","dijit.form.DateTextBox??");" things to dynamically draw elements on the page and they are all ok.But in IE, it sometimes failed. So I can only say that IE is really shit.

Have you ever came across same problem?

comment:3 Changed 11 years ago by dylan

Resolution: invalid
Status: reopenedclosed

rboy: definitely, search google for "IE setAttribute bugs". Instead use dojo.attr ( http://api.dojotoolkit.org/jsdoc/dojo/HEAD/dojo.attr ) for setting attributes.

comment:4 Changed 11 years ago by rboy

Thank you so much

comment:5 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.