Luis Lobo Borobia

Software Development, Tech, Life

  • Blogroll

    • FictionCity.NET – Social Network for Artists – Red Social para Artistas

Ext JS experiences: 1

Posted by luislobo on 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
});

Leave a Comment

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>