setHrefMode in Tabbar

if i use setHrefMode(“iframe”) i can load everything fine



but if i use setHrefMode(“ajax-html”) the page won’t display



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

tabbar.setImagePath(“jsTools/dhtmlxTabbar/codebase/imgs/”);

tabbar.preventIECashing(true);

tabbar.setSkinColors(“white”,"#FFFACD");

tabbar.setStyle(“winDflt”);

tabbar.enableAutoReSize(true)

tabbar.setHrefMode(“ajax-html”);

tabbar.addTab(“a1”,“AJAX”,“tab1”,“100px”);

tabbar.addTab(“a2”,“Static”,“tab2”,“100px”);

tabbar.addTab(“a3”,“AJAX”,“tab3”,“100px”);

tabbar.setContentHref(“a1”,“tab1.php”);

tabbar.setContentHTML(“a2”,“some HTML”);

tabbar.setContentHref(“a3”,“tab3.php”);

tabbar.setTabActive(“a1”);



if i use this code, everything is fine:

tabbar.setHrefMode(“iframe”);

tabbar.addTab(“a1”,“tab1”,“100px”);

tabbar.addTab(“a2”,“tab2”,“100px”);

tabbar.addTab(“a3”,“tab3”,“100px”);

tabbar.setContentHref(“a1”,“tab1.php”);

tabbar.setContentHTML(“a2”,“tab2.php”);

tabbar.setContentHref(“a3”,“tab3.php”);



>>but if i use setHrefMode(“ajax-html”) the page won’t display
What you mean by “page not display” ?

The page loaded in ajax-html mode has next limitations compared to iframes mode

- content must be loaded from the same domain ( cross domain security )
- content must not contain external scripts|css ( the loaded content injected in master page, but external jss|css files will not be processed )
- if loaded page has onLoad event handler it will not be fired

There must not be any problem in case of static content.