Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Greg Thimmes on Jan 19, 2010 12:25
open dhtmlx forum
Content Loading for TabBar Quick Question

Maybe its just me and how I am reading this descriptions, however Im not sure which one to use.

* iframe - single iframe created and in content changed on active tab changing;
* iframes - iframes for each tab created and its content loaded at once;
* iframes-on-demand - iframes created only when tab activated.

I want to have a tab only load when its selected, however if that tab is revisted I would like information to still be loaded and not re-loaded again. I am currently using the iframe option, I hope this is correct.
Answer posted by Alex (support) on Jan 20, 2010 01:33

If content should be loaded when tab is selected, but shouldn't be reloaded, it is more correct to use "iframes-on-demand":

tabbar.setHrefMode("iframes-on-demand");

"iframe" mode uses one iframe for each tab, so its content is reloaded each time a tab is selected.