Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Erico on Jun 23, 2009 23:31
open dhtmlx forum
Tabbar - disabled tab from html

I am using a tabbar created from html (div).
Is it possible to indicate a tab to be disabled by default without using javascript (through some parameter on div tab).


My example code (want to disable b2):

<div id="a_tabbar" hrefmode="iframes-on-demand" mode="top" tabstyle="silver" class="dhtmlxTabBar" imgpath="codebase/imgs/" style="width:700px; height:390px;" skinColors="#FCFBFC,#F4F3EE" >
<div id="b1" width="100" name="calendar" href="exampleCalendar.html"></div>
<div id="b2" width="100" name="google" href="http://www.google.com/"></div>
</div>


Thanks
Answer posted by Alex (support) on Jun 24, 2009 02:17

Hello,

it isn't possible without JS.

It can be done as follows:

<div id="a_tabbar" hrefmode="iframes-on-demand" oninit="a_tabbar.disableTab('b2')" ...>...