werdnareid
10 May 2007, 10:05 PM
Hi all , have been looking for a post similar to my own problem, but theres just too much to go through so here i am posting. I have a form that works fine in FF and failes to show in IE7 and IE6. The listing for the form is below.........
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
var contactform = new Ext.form.Form({
labelWidth: 100, // label settings here cascade unless overridden
url:'test.py',
modal:true,
reader : new Ext.data.XmlReader({ record : 'contactform', success: '@success' },
['first', 'last', 'company', 'email','phone','comment'])
});
contactform.add(
new Ext.form.TextField({fieldLabel: 'First Name', name: 'first',width:200,allowBlank:false
}),
new Ext.form.TextField({ fieldLabel: 'Last Name',name: 'last',width:200, allowBlank:false
}),
new Ext.form.TextField({fieldLabel: 'Company', name: 'company',width:200
}),
new Ext.form.TextField({fieldLabel: 'Email',name: 'email',vtype:'email',width:200,allowBlank:false
}),
new Ext.form.TextField({fieldLabel: 'Phone#', name: 'phone', vtype:'phone', width:200
}),
new Ext.form.TextArea({ fieldLabel: 'Comments', name: 'comment',width:300,height:200
})
);
contactform.addButton('Save',function(){
if (contactform.isValid()) {
Ext.MessageBox.alert('Success', 'You have filled out the form correctly.');
}else{
Ext.MessageBox.alert('Errors', 'Please fix the errors noted.');
}
}, contactform);
contactform.addButton('Cancel',function(){
contactform.on('click',contactform.reset())
});
contactform.render('form-ct');
});
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
var contactform = new Ext.form.Form({
labelWidth: 100, // label settings here cascade unless overridden
url:'test.py',
modal:true,
reader : new Ext.data.XmlReader({ record : 'contactform', success: '@success' },
['first', 'last', 'company', 'email','phone','comment'])
});
contactform.add(
new Ext.form.TextField({fieldLabel: 'First Name', name: 'first',width:200,allowBlank:false
}),
new Ext.form.TextField({ fieldLabel: 'Last Name',name: 'last',width:200, allowBlank:false
}),
new Ext.form.TextField({fieldLabel: 'Company', name: 'company',width:200
}),
new Ext.form.TextField({fieldLabel: 'Email',name: 'email',vtype:'email',width:200,allowBlank:false
}),
new Ext.form.TextField({fieldLabel: 'Phone#', name: 'phone', vtype:'phone', width:200
}),
new Ext.form.TextArea({ fieldLabel: 'Comments', name: 'comment',width:300,height:200
})
);
contactform.addButton('Save',function(){
if (contactform.isValid()) {
Ext.MessageBox.alert('Success', 'You have filled out the form correctly.');
}else{
Ext.MessageBox.alert('Errors', 'Please fix the errors noted.');
}
}, contactform);
contactform.addButton('Cancel',function(){
contactform.on('click',contactform.reset())
});
contactform.render('form-ct');
});