ffzhuang
29 Jul 2007, 6:31 PM
Hi, all:
I create a dialog, inside the dialog I create a form. And I have a checkbox in this form. As following:
var form_instance_create = new Ext.form.Form({
labelAlign: 'right',
url:'../msg/listMessage.do?action=createMessage'
});
form_instance_create.column({width: 500, labelWidth:120, style:'margin-left:8px;margin-top:8px'});
var active = new Ext.form.Checkbox({
fieldLabel: 'Active',
width: 20,
name: 'active',
checked: true
});
form_instance_create.fieldset(
{id:'desc', legend:'Please fill the field'},
planName,
active
);
form_instance_create.applyIfToFields({width:255});
form_instance_create.render('a-addInstance-form');
form_instance_create.end();
My problem is that "checkbox" is not checked in IE, however it is checked in FireFox.
Any comments should be really appreciated. I do believe that I lose in some where.
Thanks in advanced
Fenqiang Zhuang
I create a dialog, inside the dialog I create a form. And I have a checkbox in this form. As following:
var form_instance_create = new Ext.form.Form({
labelAlign: 'right',
url:'../msg/listMessage.do?action=createMessage'
});
form_instance_create.column({width: 500, labelWidth:120, style:'margin-left:8px;margin-top:8px'});
var active = new Ext.form.Checkbox({
fieldLabel: 'Active',
width: 20,
name: 'active',
checked: true
});
form_instance_create.fieldset(
{id:'desc', legend:'Please fill the field'},
planName,
active
);
form_instance_create.applyIfToFields({width:255});
form_instance_create.render('a-addInstance-form');
form_instance_create.end();
My problem is that "checkbox" is not checked in IE, however it is checked in FireFox.
Any comments should be really appreciated. I do believe that I lose in some where.
Thanks in advanced
Fenqiang Zhuang