PDA

View Full Version : [Resolved] Firebug error - 'b has no properties' in ext form



robert6000
27 Nov 2007, 2:22 AM
Hi,

I've got firebug error 'b has no properties' when I open calendar in my ext form and I select any date. Maybe someone know what I'm doing wrong?

This is my code:



ComplainFormWindow= function(){
this.complainForm= new Ext.form.FormPanel({
labelWidth: 100,
frame:true,
width: 500,
items: [{
xtype:'textfield',
fieldLabel: '<b>Name</b>',
name: 'fName',
allowBlank:false
},
{
xtype:'datefield',
fieldLabel: '<b>Build date</b>',
name: 'fDate'
}
],
buttons: [{
text: 'Save',
handler:this.formSubmit,
scope:this
},{
text: 'Cancel',
handler: function(){
this.hide();
},
scope:this

}]


});
ComplainFormWindow.superclass.constructor.call(this, {
title: 'Add version',
closable:true,
width:800,
height:475,
closeAction:'hide',
layout: 'fit',
items:this.complainForm
});
}
Ext.extend(ComplainFormWindow,Ext.Window,{
formSubmit: function(){

if(this.complainForm.form.isValid())
{
alert('OK');
}
else
{
alert('Failed');
}
}
});

Ext.onReady(function(){
var button = Ext.get('show-btn');
button.on('click', function(){
if(!form_window)
form_window = new ComplainFormWindow();
form_window.show(this);
});
});


Thanks,
Robert

robert6000
27 Nov 2007, 4:36 AM
Sorry there was bug in my code.

All the best,
Robert