PDA

View Full Version : Dynamic updating a BoxComponent



Chau
25 Feb 2010, 8:05 AM
Hi!

I have taken this very simple piece of Ext code from an old thread:


{
id: 'mycomp',
xtype: 'box',
autoEl: { cn: 'Some static HTML' }
}I would like to dynamically update this element using the following:


Ext.getCmp('mycomp').getEl().update('other HTML');But I get an error saying that getEl() is undefined. Or more precise this.el in getEl() returns undefined.

I can see that this contains my object with the id = "mycomp".

It has been a long day, so the answer will probably make me look like -> :"> But if that is going to be my face while it makes me more wise - I'll take the chance!