PDA

View Full Version : Problem in creating form variable.



kavithamc
9 Dec 2007, 10:31 PM
Hi i tried to create a form variable using following two snippets.
1. Ext.Form({
labelAlign: 'left',
labelWidth: 175,
buttonAlign: 'right'
});

2.Ext.form.Form({
labelAlign: 'left',
labelWidth: 175,
buttonAlign: 'right'
});

but it threw an error telling Ext.form.Form/Ext.Form is not a constructor

Kindly help me out in creating a form variable.

Thanks in advance
Kavitha M.C

Condor
9 Dec 2007, 10:41 PM
Use


var f = new Ext.FormPanel({
labelAlign: 'left',
labelWidth: 175,
buttonAlign: 'right'});

(Ext.form.FormPanel will also work)

kavithamc
10 Dec 2007, 12:04 AM
Ext.FormPanel enabled me to create a form variable. Thanks for your help.

Kavitha M.C