Bernard Jourdain (3/13/2009)
Hy,
Maybe you should look at the TreePanel Site map sample. Each node contains an URL and the function
I have extended the javascript loadPage function a little:
eg
var loadPage = function(tabPanel, node) {
var tab = tabPanel.getItem(node.id);
if (!tab) {
tab = tabPanel.add({
id: node.id,
title: node.text,
tabTip: node.attributes.qtip,
closable: true,
iconCls: node.attributes.iconCls,
autoLoad: {
showMask: true,
url: node.attributes.href,
mode: 'iframe',
maskMsg: 'loading ' + node.text + '...'
}
});
}
tabPanel.setActiveTab(tab);
}
rgds
/Peter