Hi , I wan to bring my form in center...
i have the following code
Ext.onReady(function()
{
Ext.QuickTips.init();
var reg_form = new Ext.FormPanel({
url: 'movie-form-submit.php',
renderTo: document.body,
frame: true,
title: 'Employee Registration Form',
bodystyle:'padding:10px',
width:420,
height:420,
items: [
{
xtype: 'numberfield',
fieldLabel: 'Employee Id',
name: 'id',
allowBlank: false
},
{
xtype: 'textfield',
fieldLabel: 'Employee Name',
name: 'name',
listeners: {
invalid: function(field, msg)
{
Ext.Msg.alert('Invalid name !!', msg);
}
}
},
{
xtype: 'textfield',
fieldLabel: 'Email Id',
name: 'id',
allowBlank: false,
vtype :'email'
},
{
xtype: 'datefield',
fieldLabel: 'Date of Training',
name: 'doj',
disabledDays: [0]
},
{
xtype: 'checkbox',
name: 'siblings',
fieldLabel: 'Above 3.x'
},
{
xtype: 'timefield',
name: 'time',
fieldLabel: 'Time',
anchor: '90%'
},
{
xtype: 'radio',
fieldLabel: 'location',
name: 'location',
boxLabel: 'Nal Stop'
}, {
xtype: 'radio',
name: 'location',
hideLabel: false,
boxLabel: 'Hinjewadi'
},{
xtype: 'radio',
name: 'location',
hideLabel: false,
boxLabel: 'Blue Ridge'
},
{
xtype: 'textarea',
name: 'area',
fieldLabel: 'Requirement Details',
anchor: '80%',
multiline: true
},
]
});
});
PLease tell me what to add more to bring it in center?? i m testing it on IE8.0
i have the following code
Ext.onReady(function()
{
Ext.QuickTips.init();
var reg_form = new Ext.FormPanel({
url: 'movie-form-submit.php',
renderTo: document.body,
frame: true,
title: 'Employee Registration Form',
bodystyle:'padding:10px',
width:420,
height:420,
items: [
{
xtype: 'numberfield',
fieldLabel: 'Employee Id',
name: 'id',
allowBlank: false
},
{
xtype: 'textfield',
fieldLabel: 'Employee Name',
name: 'name',
listeners: {
invalid: function(field, msg)
{
Ext.Msg.alert('Invalid name !!', msg);
}
}
},
{
xtype: 'textfield',
fieldLabel: 'Email Id',
name: 'id',
allowBlank: false,
vtype :'email'
},
{
xtype: 'datefield',
fieldLabel: 'Date of Training',
name: 'doj',
disabledDays: [0]
},
{
xtype: 'checkbox',
name: 'siblings',
fieldLabel: 'Above 3.x'
},
{
xtype: 'timefield',
name: 'time',
fieldLabel: 'Time',
anchor: '90%'
},
{
xtype: 'radio',
fieldLabel: 'location',
name: 'location',
boxLabel: 'Nal Stop'
}, {
xtype: 'radio',
name: 'location',
hideLabel: false,
boxLabel: 'Hinjewadi'
},{
xtype: 'radio',
name: 'location',
hideLabel: false,
boxLabel: 'Blue Ridge'
},
{
xtype: 'textarea',
name: 'area',
fieldLabel: 'Requirement Details',
anchor: '80%',
multiline: true
},
]
});
});
PLease tell me what to add more to bring it in center?? i m testing it on IE8.0