Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kunal on Jan 12, 2009 22:27
open dhtmlx forum
Dhtmlx Tabbar api

Hi,

I have initialized dhtmlx tabbar from Html.
The code is as follows
<script src="../../codebase/dhtmlXTabbar.js"></script>
<script src="../../codebase/dhtmlXTabbar_start.js"></script>

<div id="a_tabbar" class="dhtmlxTabBar" imgpath="../../codebase/imgs/" style="width:390; height:390;" skinColors="#FCFBFC,#F4F3EE" >
<div id="a1" name="Profiles1">
<img src="../images/page_a.gif">
</div>
<div id="a2" name="Settings">
<img src="../images/page_b.gif">
</div>
<div id="a3" name="Content">
Content 3
</div>
</div>

I want to use tabbar api to navigate between tabs.
goToPrevTab(),goToNextTab()..

So how do I accomplished this?

--
Kunal


Answer posted by Support on Jan 13, 2009 01:33
You can use ID of tabbar's container as reference to tabbar's object


<div id="a_tabbar" class="dhtmlxTabBar" 
...
<input type="button" value="next" onclick="a_tabbar.goToNextTab()" />