Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dashen on May 25, 2009 04:43
open dhtmlx forum
refresh the tabs

hello,

i made a layout with "3L", there is a list in the cell"a", in the cell "b" i wanted to show some information with tabs. when i click a node in the list, its information would be displayed in the tabs. i used "iframe" mode.

i wrote the following code, and it worked.

the tabbar had 3 subtabs and their ids were "overall"."current" and "down".

function showSVGTree()
{    
     if(document.getElementsByName("selectedProcess")[0].selectedIndex != 0)
{
            parent.dhxTabbar.setContentHref("overall","<%=basePath%>productProcessSvgTree.do?method=show2");
            parent.dhxTabbar.setTabActive("overall");
        }
}

but when i click the other nodes in the cell "a", the tab "overall" in the cell"b" did not change. i had to click the other subs and then clicked "overall", the information could be right shown.

have you any idea, how this tabs can be automatically refeshed?

thank you very much!
Answer posted by dhxSupport on May 25, 2009 07:19
Because content for active tab already loaded, tabbar will ignore setContentHref mode calls.
To workaround it, just update setContentHref call with next one

  parent.dhxTabbar.forceLoad("overall","<%=basePath%>productProcessSvgTree.do?method=show2"); 

this command will load provided url, without relation to current state of tab. 

Answer posted by Dashen on May 30, 2009 06:11

thank you very much :)

it works