timo.nuros
17 Oct 2007, 8:33 AM
Hi,
the ExtJS Checkbox models directly after their HTML paradigm. This causes some problems, especially with serializeForm and AJAX requests, as the Checkbox value will not be sent if the checkbox is unchecked. A solution to this would be a property where the unchecked value can be stored, e.g.:
var o = new Ext.form.Checkbox;
o.uncheckedValue = 'off';
o.value = 'on';
It should be up to the developer whether to use the traditional HTML paradigm or to use the uncheckedValue paradigm; and serializeForm should respect this.
What do you think?
Regards,
Timo
the ExtJS Checkbox models directly after their HTML paradigm. This causes some problems, especially with serializeForm and AJAX requests, as the Checkbox value will not be sent if the checkbox is unchecked. A solution to this would be a property where the unchecked value can be stored, e.g.:
var o = new Ext.form.Checkbox;
o.uncheckedValue = 'off';
o.value = 'on';
It should be up to the developer whether to use the traditional HTML paradigm or to use the uncheckedValue paradigm; and serializeForm should respect this.
What do you think?
Regards,
Timo