Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Jul 16, 2008 00:19
open dhtmlx forum
DHTMLX Tabbar : Clicking on same tab should go to the same page

Hi,
I am having child page in the page loaded when clicked on the tab, then if I click on the same tab again, I want to reload the page
mentioned in the xml file
How to achieve this ?
Answer posted by Support on Jul 16, 2008 02:27
There is no built in event for such usecase.
Can be achieved by code modification or wrapping.

tabbar._setTabActive_old = tabbar._setTabActive;
tabbar._setTabActive=function(tab.idd){
    if (tab==this._lastActive) tabbar.forceLoad(tab.idd); //reload existing tab
    return tabbar._setTabActive_old.apply(this,arguments);
}