Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Franco Merola on Sep 18, 2009 01:32
open dhtmlx forum
tabWindow

Hi,
i'm using ver 2.1 pro.
I've this problem:
i've a this xml for tab
<?xml version="1.0" encoding="UTF-8"?>
<tabbar hrefmode="iframe"><row><tab selected="1" id="t1" width="100px" href="/cubo/RecuperaToFromSession.do?idMacroAttivita=67">instradamento 1</tab></row></tabbar>

In my jsp:

function doOnload(){
     tabbar=new dhtmlXTabBar("a_tabbar","top");
    }
function showHideRicerca()
    {
        
        if(tabbar.getActiveTab() != null){
            var idTab = tabbar.getActiveTab();
            alert(tabbar.tabWindow(idTab));
        }
}
...
<div id="a_tabbar" width="1000px;" height="250px;"></div>

At the end of load action, i've a grid in windows. So, when i call function showHideRicerca, the alert show null.
I must call a function in a windows present in tab.
What can i do?
Answer posted by Alex (support) on Sep 21, 2009 08:14

Hello

when is showHideRicerca called ? 

Try to call it after xml loading

tabbar.loadXML("tabbar.xml",showHideRicerca);

If the issue isn't solved, please provide the complete demo to support@dhtmlx.com