kvrmurthy
13 Sep 2007, 5:58 AM
Please bear with my newbie questions.
I need to render some EXT elements on a DIV thats part of the page thats loaded by the TabItem. I can understand that its writen AJAx style, so there is no OnLoad kinda stuff to this.
I am wondering if there can be a new event like: 'onAfterLoad' for the tab.
I've tried the following without much luck.
tab1.on('activate', function(){
tab1.refresh();
f1 ();
});
f1 (){
// create EXT elements for a DIV thats just created by loading the URL for the tab.
// fails, because : Ext.get("DivId") is null.
}
So it'll be cool to have an event like this:
tab1.on('onAftterActivate', function(){
f1 ();
});
=====
OR
=====
tab1.on('activate', function(){
tab1.refresh();
});
// do some thing like this: tab1.somthing();
// so that it can render EXT on a DIV from the just loaded HTML content
// or simulate the onload in the browser !!
Any help will be greatly appreciated.
I need to render some EXT elements on a DIV thats part of the page thats loaded by the TabItem. I can understand that its writen AJAx style, so there is no OnLoad kinda stuff to this.
I am wondering if there can be a new event like: 'onAfterLoad' for the tab.
I've tried the following without much luck.
tab1.on('activate', function(){
tab1.refresh();
f1 ();
});
f1 (){
// create EXT elements for a DIV thats just created by loading the URL for the tab.
// fails, because : Ext.get("DivId") is null.
}
So it'll be cool to have an event like this:
tab1.on('onAftterActivate', function(){
f1 ();
});
=====
OR
=====
tab1.on('activate', function(){
tab1.refresh();
});
// do some thing like this: tab1.somthing();
// so that it can render EXT on a DIV from the just loaded HTML content
// or simulate the onload in the browser !!
Any help will be greatly appreciated.