DHTMLX Tabbar

Hi,



I want to rebuild/recreate a tabbar in the same container but when I make this call:



tabbar = null;

tabbar = new …



It just puts the new tabbar underneath the old one, i.e. the old one doesn’t get destroyed at all.



Could you please help me?

You can try to use the following approach to recreate tabbar:

if (tabbar)
     tabbar.entBox.innerHTML="";

tabbar = new …