Activate DHTMLX Tabbar by 'ID'


Hi there,

Some time ago I asked the following question: dhtmlx.com/docs/products/kb/inde … 008&a=2423
I received an answer (thanks) which was suitable for Firefox. In Internet Explorer use a different way to load the tabs.

The code is as follows:



 
     


         
             
   
  
<div id=a_tabbar style=“width:512px; height:600px;”/>

       

The issue is that when I use this way (XML) for loading the tabs, the following code does NOT work for activating a certain tab by name.



Any ideas?

In the code provided above you are using
     tabbar=new dhtmlXTabBar
and later
    a_tabbar.setTabActive(‘b7’)
so you are using different name for the same object, the correct code would be
    tabbar.setTabActive(‘b7’)

( the ID of container can be used as a name in case of init from HTML, in case of init by javascript - you need to use name of var in which object reference stored )