Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Eckertz on May 19, 2009 10:22
open dhtmlx forum
dhtmlxtabbar

I want to use a tabbar within a layout ("c"), in "a" is a dhtmlxaccordion, in "b" is a dhtmlxtree, I cant get iframes to work properly loading a url, sample code is
dhxLayout.cells("c").setText("applications");
var dhxtabbar = dhxLayout.cells("c").attachTabbar();
dhxtabbar.enableAutoReSize(true,true);
dhxtabbar.enableTabCloseButton(true);
dhxtabbar.setHrefMode("iframes");
dhxtabbar.setSkinColors("#FCFBFC","#F4F3EE");
dhxtabbar.setImagePath("dhtmlx/dhtmlxTabbar/codebase/imgs/");
dhxtabbar.addTab("tab1","tab1","100");
dhxtabbar.addTab("tab2","tab2","100");
dhxtabbar.forceLoad("tab1","http://www.google.com");
Answer posted by Alex (support) on May 20, 2009 06:39
Hello,
try to use
    dhxtabbar.setContentHref("tab1","http://www.google.com");
instead of
    dhxtabbar.forceLoad("tab1","http://www.google.com");