Hi

I am messing around a little bit finetuning everything
I have a minor problem as I'd like to have the same icon in the newly created tab as I have in the treenode the user clicked (to create/activate the tab)

Something like this:
---------------------------------
treenode | tabpanel
---------------------------------
A        | AA |
    AA   |-----------------------
    AB   |
         |
Howto get icon from AA node to AA tab?

Clientside javascript to create tabs called from the TreePanel.Listeners.Click.Handler:

<script type="text/javascript">
var loadPage = function(tabPanel, node) {
    var tab = tabPanel.getItem(node.id);
    if (!tab) {
        tab = tabPanel.add({
            id: node.id,
            title: node.text,
            closable: true, 
            iconCls: 'icon-table',
            autoLoad: {
                showMask: true,
                url: node.attributes.href,
                mode: 'iframe',
                maskMsg: 'Indl&amp;aelig;ser ' + node.text + '...'
                }
            });
        }
        tabPanel.setActiveTab(tab);
    }
</script>
rgds