Categories | Question details Back To List | ||
TABBAR forceLoad I'd like to reload a page when selecting a tab, but it doesn't work. <script> tabbar=new dhtmlXTabBar("a_tabbar","top"); tabbar.setStyle("silver"); tabbar.setImagePath("tools/dhtmlx/imgs/"); tabbar.setHrefMode("iframes"); tabbar.addTab("a1","Already selected","150px"); tabbar.setContentHref("a1","index.php?special=1&secure=contents&stp=81&idrecord=3&pag=1&alreadyselected=1"); tabbar.addTab("a2","No category","150px"); tabbar.setContentHref("a2","index.php?special=1&secure=contents&stp=81&idrecord=3&pag=1&idgallery=0"); tabbar.addTab("a3","Other categories","150px"); tabbar.setContentHref("a3","index.php?special=1&secure=contents&stp=81&idrecord=3&pag=1&othercat=1&idgallery=0"); tabbar.setTabActive("a1"); tabbar.setOnSelectHandler(on_select_handler); function on_select_handler(idn, ido) { tabbar.forceLoad(idn); return true; } </script> Thank for helping. Answer posted by Support on Dec 29, 2008 17:03 forceLoad command can be used to load some different content in the tab, so it requires two parameters , id of tab and url which will be loaded. If second parameter not used, the old href will be used, but most probably browser will reload page from cache instead of real url. You can try to use function on_select_handler(idn, ido) { var uid="&uid="+(new Date()).valueOf(); tabbar.forceLoad(idn,tabbar._hrefs[idn]+uid); return true; } Answer posted on Dec 30, 2008 08:07 It still doesn't work. Iframe pages are no-cache, but still nothing happen. Thank you for helping Answer posted by Support on Jan 12, 2009 03:43 Unfortunately issue can't be reconstructed locally. If problem still occurs for you - please provide any kind of sample or online demo where issue can be reconstructed. ( you can send such info directly to support@dhtmlx.com ) |