a strange problem in the tab setContentHref method

in the example of the tabbar-- Loading in iframes - On demand



dhtmlx.com/docs/products/dht … blank.html



but for why??



another problem:it gives me the error info as following



line:103

this._content[…] is null or not an object



the code as following:















tabbar=new dhtmlXTabBar(“a_tabbar”,“bottom”);

tabbar.setImagePath("…/…/codebase/imgs/");

tabbar.loadXML(“test.xml?e=” + new Date().getTime());

tabbar.enableAutoReSize(true);

tabbar.setContentHref(“b2”,“http://www.google.com”);





the test.xml file:



<?xml version="1.0"?>





a-1-1

a-1-2

a-1-3






setContentHref sets the url to the tab, but it doesn’t load it.


Try to click force loading of the first tab (to call the forceLoad(tabId) method) and the page will be shown.


Regarding the message “this._content[…] is null or not an object”. It is correct behaviour as you didn’t set href attribute for all tabs in the xml.


You can set the blank page as a content. But any content is necessary.