Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by John Lagerquist on Oct 26, 2007 21:54
open dhtmlx forum
can I add a tabbar as the content for another tabbar?

I am new to JavaScript so forgive my ignorance...

I have a horizontal tabbar at the top of my page. There are 3 tabs. The first 2 tabs have grids on them and it works great. If the user clicks the 3rd tab, I would like a tabbar to show up on the right. Do you have an example of how I can do this?

Thanks!
Answer posted on Oct 29, 2007 07:15
As far as I can understand you need to have sub tabbar, right?

It can be created in next two ways.

a) create one tabbar in normal mode, and second in "only-head" mode, attach js code to onclick event so it show hide second set of tabs based on selected tab.

b) Just create a second tabbar inside third tab
http://dhtmlx.com/docs/products/dhtmlxTabbar/samples/loading_creating_tabs_content/tab_nested.html