Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mimi on Feb 05, 2009 15:26
open dhtmlx forum
tabbar in layout

I have a layout with 3 panels. The top panel is a form. The middle panel is for the results and the bottom panel provides miscellaneous information.

In the middle panel, I want to have multiple tabbar. The first tabbar would have a grid and the other would have content of HTML pages. I tried the following code but only the last tab is showing.

dhxLayout = new dhtmlXLayoutObject("cmr", "3E");
// Attach div to layout
dhxLayout.cells("a").attachObject("filter");
dhxLayout.cells("b").attachObject("resultsPane");
dhxLayout.cells("c").attachObject("info");

// Attach tabbar to the result pane
tabbar = dhxLayout.cells("b").attachTabbar();
tabbar.setImagePath("dhtmlx/dhtmlxTabbar/codebase/imgs/");

/ addTab("id", "label", "width")
tabbar.addTab("myGrid", "CMR", "100px");
tabbar.addTab("mySite", "Web", "100px");

Am I doing something wrong or is this not supported?

--Mimi
Answer posted by Support on Feb 06, 2009 02:55
Please try this:

tabbar.addTab("myGrid", "CMR", 100); // not "100px"
tabbar.addTab("mySite", "Web", 100);

Answer posted by Mimi on Feb 09, 2009 12:32
The above doesn't make any difference.  I still only see the last tab.

If I try to attach content to the tab, I get an error...

// Assign content to tabs
tabbar.setContentHref("cmrResults", "http://www.google.com");
tabbar.setContentHref("dnbResults", "http://www.yahoo.com");

this._content[id] is undefined
dhx_tab_close()("cmrResults", "http://www.google.com")dhtmlxtabbar.js (line 109)
init()cmrSearch2.jsp (line 83)
onload(load )

var z=document.createElement("DIV");z.c...{if (this._hrfmode.indexOf("iframe")==0)



Attachments (1)