I have a tabbar:
this.ontgTabbar = new dhtmlXTabBar("configureONTGTabbar");
this.ontgTabbar.setImagePath("/webnms/dhtmlx3.0/dhtmlxTabbar/codebase/imgs/");
this.ontgTabbar.preventIECashing(true);
this.ontgTabbar.setSkinColors("white","#FFFACD");
this.ontgTabbar.setStyle("modern");
this.ontgTabbar.enableAutoReSize(true);
this.ontgTabbar.setHrefMode("iframe");
this.ontgTabbar.addTab("VoIP", "VoIP config");
this.ontgTabbar.addTab("IP", "IP config");
this.ontgTabbar.addTab("Location", "Location");
this.dhcpOption = new dhtmlXCombo("T_DHCPOption", "DHCPOption", 150);
this.dhcpOption.addOption("Enable", "Enable");
this.dhcpOption.addOption("Disable", "Disable");
this.ontgTabbar.setContent("VoIP","configureVoIPMain");
this.ontgTabbar.setContent("IP","configureIPMain");
this.ontgTabbar.setContent("Location","configureLocationMain");
I don’t have to do anything specific on select other than just select the relevant tab. However, this default selection is not working for me.
On tab select, the content for old tab is set to javascript:false here:
b.hide=function(){
c._s.hide?(this.style.visibility="",this.style.display="none"):this.style.visibility="hidden";this.style.zIndex=-1;c._hrfmode=="iframe"&&this.attachURL("javascript:false")};
On reselection of an old tab, the content is not reattached. Is this a bug?