freakishmisko
24 Mar 2007, 2:40 PM
Hi fellas,
I have a region with tabs - 1 is Grid Panel, which contains links that opens new tabs in this region (ContentPanels) . I'm setting the content of this new tabs in a function call:
addNewTab : function (location,tab,id){
var holder = Ext.DomHelper.append(document.getElementById('container'),{tag: 'div'});
var region= layout.getRegion(location);
var panel = new Ext.ContentPanel(holder, {title: tab['title'],fitToFrame:true, closable: true,url: 'display_feed.php?noCache=' + (new Date()).valueOf()+'&ident='+tab['recid']});
layout.add('center',panel );
}
My problem is , that each time i click on different tab, and get back to previous tab, the content is reloaded. As i am doing some inline editing in those created tab, it's necessary that these don't get reloaded while switching between all the tabs..
any help will be highly appreciated
Misko
I have a region with tabs - 1 is Grid Panel, which contains links that opens new tabs in this region (ContentPanels) . I'm setting the content of this new tabs in a function call:
addNewTab : function (location,tab,id){
var holder = Ext.DomHelper.append(document.getElementById('container'),{tag: 'div'});
var region= layout.getRegion(location);
var panel = new Ext.ContentPanel(holder, {title: tab['title'],fitToFrame:true, closable: true,url: 'display_feed.php?noCache=' + (new Date()).valueOf()+'&ident='+tab['recid']});
layout.add('center',panel );
}
My problem is , that each time i click on different tab, and get back to previous tab, the content is reloaded. As i am doing some inline editing in those created tab, it's necessary that these don't get reloaded while switching between all the tabs..
any help will be highly appreciated
Misko