Categories | Question details Back To List | ||
a strange problem in the tab setContentHref method in the example of the tabbar-- Loading in iframes - On demand http://www.dhtmlx.com/docs/products/dhtmlxTabbar/samples/loading_creating_tabs_content/tab_iframes2.html?un=1239211912000# when first click the "Change first tab href " or the second tab is activate,it work correctly,but when the fisrt tab is activate,and now click the "Change first tab href " ,it go to a blank.html http://www.dhtmlx.com/docs/products/dhtmlxTabbar/codebase/imgs/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: <tr> <td> <div id="a_tabbar" style="width:100%;height:910; overflow:hidden;"/> </td> </tr> 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"?> <tabbar hrefmode="iframes-on-demand"> <row> <tab id="b1" width='150px'>a-1-1</tab> <tab id="b2" width='150px' selected="1" href="www.ebay.com">a-1-2</tab> <tab id="b3" width='150px'>a-1-3</tab> </row> </tabbar> Answer posted by Alex (support) on Apr 09, 2009 06:49 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. |