Categories | Question details Back To List | ||
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 Answer posted by Support on Feb 05, 2009 09:03 You are using "setTabActive" command before assigning any content to the tabs, just change order of commands ( move setTabActive after setContentHref ) Answer posted by Martin on Feb 06, 2009 00:09 Thanks alot, great support. |