Coolite Examples Explorer
New Community Forums available at http://forums.ext.net
 

Coolite Forums

Welcome Guest ( Login | Register )
 
««12
Coolite Examples Explorer
Subscribe
Last Login: 4/27/2010 1:28:52 AM
Posts: 181,
Posted 11/1/2009 1:25:10 PM

Group: Coolite Early Adopter
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
« Prev Topic | Next Topic »
««12
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -5:00, Time now is 8:44pm