Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#6599 closed defect (fixed)

Checkbox Problem with IE7

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone: 1.2
Component: Dijit - Form Version: 1.1b1
Keywords: Cc:
Blocked By: Blocking:

Description

This problem appears on IE7. FF2 it works OK. I did not test it on any other browser or version.

Version: Nightly Build 22/04/2008

If type="checkbox" is not written in the HTML For example:

<input name="cb7" id="cb7" dojoType="dijit.form.CheckBox?">

when :

a=dijit.byId("cb7").getValue();

The value of "a" will be an empty string when the checkbox is checked. The value will be "false" when checkbox is unchecked.

Workaround:

<input name="cb7" type="checkbox" id="cb7" dojoType="dijit.form.CheckBox?">

The value of "a" will be "on" when checked.

It behaves like type="checkbox" is a required attribute on IE7.

Again, of FF2 both html versions work as expected.

thanks !! Eduardo

Change History (4)

comment:1 Changed 11 years ago by bill

Owner: set to Douglas Hays

comment:2 Changed 11 years ago by Douglas Hays

Milestone: 1.2

comment:3 Changed 11 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [14287]) Fixes #6599. Removed need to set type=checkbox. Added tests into test_CheckBox.html. Overrode value="" with value=on to match FF3.

comment:4 Changed 8 years ago by bill

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