Luis Lobo Borobia

Software Development, Tech, Life

Posts etiquetados ‘development’

Ext JS experiences: 1

Publicado por luislobo en 31/05/2010

Just if you ever encounter this error on FireBug when developing with Ext JS:

this.addEvents is not a function

Please, check that you are not missing a “new” keyword.

I’ve spent an hour with this section of code, throwing that error:

txtInstrucciones = Ext.form.TextArea({
fieldLabel:'Instrucciones de la tarea',
name:'instrucciones',
allowBlank:false,
readOnly: true,
style: 'margin-top: 5px;',
width:500,
height:80
});

So, the error was a missing new keyword:


txtInstrucciones = new Ext.form.TextArea({
fieldLabel:'Instrucciones de la tarea',
name:'instrucciones',
allowBlank:false,
readOnly: true,
style: 'margin-top: 5px;',
width:500,

height:80
});

Publicado en Development | Etiquetado: , , , | Deja un Comentario »

 
Seguir

Get every new post delivered to your Inbox.