Hi,
I am a newbie. I am working on a project of a mini blog. I have a problem about panel and viewport.
In my project. I create a viewport whoes id is "mainViewport". In this viewport, I have a container, id = "conIndex". Out of the viewport, I have individual container, id = "conEdit".
Code:
_ mainViewport
 |_conIndex
_conEdit
I want to replace conIndex by conEdit and show it on. So, I make a button in conIndex, which has event function:
Code:
var viewport = Ext.ComponentQuery.query("[id=mainViewport]")[0];
viewport.removeAll();
viewport.add( Ext.ComponentQuery.query("[id=conEdit]")[0] );
But nothing happens. So, I tried:
Code:
alert(Ext.ComponentQuery.query("[id=conEdit]")[0]);
It shows "undefined".
I have a question of how to do that in a easy way? And how a web software such as a forum with many departments works?
Thanks all