Hi,
I am getting this JS error when i try adding a second tabbar. Below is the code i am using, what am i doing wrong?
//////
function initTabs(){
tabbar=new dhtmlXTabBar(“a_tabbar”,“top”);
tabbar.setImagePath(‘images/imgs/’);
tabbar.preventIECashing(true);
tabbar.setStyle(“modern”);
tabbar.setSkinColors("#FCFBFC","#F4F3EE","#F4F3EE");
tabbar.enableAutoSize(true,true);
//tabbar.enableAutoReSize(true); //not working with IE6
tabbar.loadXML(“menu.xml”,function(){
tabbar.setTabActive(“b1”);
});
function initLogoutTab(){
tabbar2=new dhtmlXTabBar(“b_tabbar”,“right”);
tabbar2.setImagePath(“images/imgs/”);
//tabbar2.enableContentZone(false);
tabbar2.loadXML(“menuLogout.xml”);
tabbar2.setOnSelectHandler(function(id){
if (id==“logout”)
document.location.href=“logout.jsp”
else
return true;
})
}
initTabs();
initLogoutTab();
//////
Thanks,
josh
The problem occurs , when tabbar can’t locate container HTML element.
>> tabbar2=new dhtmlXTabBar(“b_tabbar”,“right”);
The component expects , that somewhere on page container with ID “b_tabbar” exists, but it can’t be located.