Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Steven on Sep 11, 2008 02:24
open dhtmlx forum
Defult Tasb

Hello there,

I am currently trying to get Tabber to remember the last tab i was using. I am using the HTML version but i cannot get setTabActive to work.

here is the code from the opening DIV

<div id="a_tabbar" class="dhtmlxTabBar" onbeforeinit="a_tabbar.enableAutoSize(false,true);a_tabbar.setTabActive(a3); " imgpath="tabs/codebase/imgs/" style="width:750;" skinColors="#FFFFFF" >


Thank you for your help.
Answer posted by Support on Sep 11, 2008 02:55
"onbeforeinit" executed when tabs not available yet. So setTabActive will not have effect. 
You can 
a) use "select" attriubute of necessary tab's DIV 
or
b) use "oninit"
<div id="a_tabbar" class="dhtmlxTabBar" onbeforeinit="a_tabbar.enableAutoSize(false,true);" oninit="a_tabbar.setTabActive(a3); "
Answer posted on Sep 11, 2008 14:50
Hello there,

Thank you for looking into this, I tried getting this one to work, but unfortunatly no luck. I will have a go at the select option also.
Answer posted on Sep 12, 2008 02:29
Hello,

Just spent another 3 hours on this but no luck, it seems to not like the HTML implementation.
Answer posted by Support on Sep 12, 2008 05:01
Please check attached sample. 
Attachments (1)