Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Oct 09, 2009 03:45
open dhtmlx forum
tabbar

Hi to all

im creating tabbar using dhtmlxtabbar lastest version here i mention the code


<div id="a_tabbar" class="dhtmlxTabBar" mode="bottom" tabstyle="modern" imgpath="imgs/" style="margin-left:30px;margin-right:30px;margin-top:10px;width:850;height:200;">
                        <div id="0" name="LRU" width="50"></div>
                        <div id="1" name="TOTAL COST" width="100"></div>
                        <div id="2" name="LOGISTIC FOOTPRINT" width="125"></div>
                        <div id="3" name="AVAILABILITY" width="100"></div>
                        <div id="4" name="MAINTAINABILITY" width="125"></div>
                        <div id="5" name="RELIABILITY" width="100"></div>
                    </div>

im veing the combo box with the same page

<select id="input" onchange="getValue(this.value)" style="margin-left:60px;margin-top:15px;margin-bottom:15px;height:20px;" >
                <option value="none">--Select--</option>
                <option value="LRU Input">LRU Input</option>
                <option value="Totalcost Input">Totalcost Input</option>
                <option value="Logistic Footprint Input">Logistic Footprint Input</option>
                <option value="Availability Input">Availability Input</option>
                <option value="Maintanability Input">Maintanability Input</option>
                <option value="Reliability Input">Reliability Input</option>
  </select>

when onchange event i want to show the appropriate tab
in javascript

tabbar=new dhtmlXTabBar("a_tabbar","bottom");

and onchange event i wrote tabbar.setTabActive("3");

but its not working kindly help me

Regards,
S Lambert Leonrad

Answer posted by Stanislav (support) on Oct 09, 2009 08:58
Please check the attached sample

You need not to create a new tabbar instance, you can access the existing tabbar by using ID of its container. 
<div id="a_tabbar

a_tabbar.setTabActive("3")
Attachments (1)
Answer posted on Oct 11, 2009 22:38
Thank you Mr.Stanislav