Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sai on Jan 19, 2009 22:25
open dhtmlx forum
How to get the instance of the object (Tabbar) in case if it is auto initilized

I Initialized TabBar object from HTML structure, Now I want to get the active tab. How can I do it?
Answer posted by dhxSupport on Jan 20, 2009 08:41
You can use id of the htmlx container like instance of the tabbar:
<div id="a_tabbar" class="dhtmlxTabBar" imgpath="codebase/imgs/" style="width:390; height:390;" skinColors="#FCFBFC,#F4F3EE" >
...
</div>
<input type="button" value="next" onclick="alert(a_tabbar.getActiveTab())" />