Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by GB on Dec 16, 2008 22:06
open dhtmlx forum
Tabbar inside Layout

I have added a third frame ("C") inside my layout. My intention is to put Tabbar inside this frame. I cannot get the tabbar inside the third frame to show up at all. In fact, the title of the frame no longer shows up when I have the tabbar code there.

Can you help?

Here is the code:

<body style="width:100%;height:100%;margin:0px;overflow:hidden;">
<div id="a_tabbar" class="dhtmlxTabBar style="width:400;height:100"></div>
<script>
var dhxLayout=new dhtmlXLayoutObject(document.body,"3L","dhx_black");
dhxLayout.cells("a").setWidth(200);
dhxLayout.cells("a").setText("Menu");
dhxLayout.cells("b").setText("Tournament List");
dhxLayout.cells("c").setText("Details");

var dhxGrid = dhxLayout.cells("b").attachGrid();
dhxGrid.setImagePath("codebase/imgs/");
dhxGrid.setSkin("modern");
dhxGrid.init();

var dhxTree = dhxLayout.cells("a").attachTree(0);
dhxTree.setImagePath('tree/codebase/imgs/');
dhxTree.loadXML("http://secure.spidermed.com/tourn_menu.xml");

dhxTree.attachEvent("onClick",function(id){
dhxGrid.clearAll();
dhxGrid.loadXML("http://secure.spidermed.com/ajax_xml.fwx?for="+id);
return true;
});

var dhxtabbar = dhxLayout.cells("c").attachTabbar();
dhxtabbar=new dhtmlXTabBar("a_tabbar","top");
dhxtabbar.setImagePath("tabbar/codebase/imgs/");
dhxtabbar.loadXML("http://secure.spidermed.com/tabs.xml");

</script>
</body></html>

Here is the xml:

<?xml version="1.0"?>
<tabbar hrefmode="iframes-on-demand">
<row>
<tab id="b1" width='100px' href="http://groups.google.com">Google groups</tab>
<tab id="b2" width='100px' selected="1" href="http://google.com">Google search</tab>
</row>
</tabbar>

Thanks again for your help.
Answer posted by Support on Dec 17, 2008 00:02
Remove the following lines from your code:

<div id="a_tabbar" class="dhtmlxTabBar style="width:400;height:100"></div>

dhxtabbar=new dhtmlXTabBar("a_tabbar","top");
Answer posted by gb on Dec 17, 2008 04:48
Works good... Thanks!