Hi,
I have posted before regarding forcing the reload of the current active tab.
I integrated one of the given solution to my application but i get a javascript error:
char:3
this._content[…] is null or not an object
code: 0
Here’s my code snippet:
function initTabs(){
tabbar=new dhtmlXTabBar(“a_tabbar”,“top”);
tabbar.setImagePath(‘images/imgs/’);
tabbar.preventIECashing(true);
//tabbar.setHrefMode(“iframes-on-demand”);
tabbar.setHrefMode(“ajax-html”);
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”);
});
tabbar._setTabActive_old=tabbar._setTabActive;
tabbar._setTabActive=function(tab,mode){
if (tab==this._lastActive){
// here the moment, when click on active tab occured
tabbar.forceLoad(tab.idd);
} else return this._setTabActive_old(tab,mode);
}
}
-----
I seem to get this javascript error a lot with tabbar when i use the api functions of tabbar such as GoToNextTab etc…
Am i doing something wrong here?
BTW the script does seem to work fine with only html code(static content)! But mine is a web application that is displaying dynamic content from a database and is using JSP.
Thank you for helping out.
Unfortunately the issue can’t be reconstructed locally.
The error description says that in some operation was used not existing ID , tabbar was not able to locate content of tab by its ID
Please be sure that each tab has unique ID and operations against tabbar executed only after configuration load