Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 19, 2009 13:48
open dhtmlx forum
when any tab close how to refresh a specific tab

hi,

i have 3 tabs, when user click an entry in tab 2 i am creating a new tab and once he close that created tab, i need to refresh tab 2, is there an signature which will do that.
Answer posted by Alex (support) on Mar 20, 2009 02:23

Hello, 

Do you use iframe-based loading mode ?

To refresh tab you can call the following method:

tabbar.setContentHref("a2", new_url);

The onTabClose event is called when tab is closed.

tabbar.attachEvent("onTabClose",function(id){

...

})