setContentHref() not working

Hi,



I get a strange js-error when I call setContentHref.

My error.log says:

“z has no properties in dhtmlxtabbar.js on line 120”.



What is wrong here:



var dhxTabbar = new dhtmlXTabBar(‘TABBARBOX’,‘top’);

var actTab = “statistics”;

dhxTabbar.setStyle(‘winDflt’);

dhxTabbar.setHrefMode(“ajax-html”);

dhxTabbar.setImagePath(“mcmd_modules/mod_content/resources/lib/dhtmlxTabbar/codebase/imgs/”);

dhxTabbar.addTab(“statistics”,“Statistik”,“110px”);

dhxTabbar.addTab(“services”,“Services”,“110px”);

dhxTabbar.setTabActive(actTab);

dhxTabbar.setContent(actTab,‘TAB-STATISTICS’);

dhxTabbar.setContentHref(“services”,“index.php?ajax=1&id=services”);





Thx in advance,

Mart

You are using “setTabActive” command before assigning any content to the tabs, just change order of commands ( move setTabActive after setContentHref )

Thanks alot, great support.