:: Forum >>

tabs.onCurrentItemChanging = function(i)?

I am using AW.UI.Tabs. I need to trigger an action when the focus LEAVE from the tabs[0]. I tried as following:

tabs.onCurrentItemChanging = function(i){
if (i==0) alert("leaving tab 0?");
}

However, the event is triggered when the focus ENTER into the tab[0], instead of LEAVE from tab[0]. How can I get the parameter which reflact the "leaving" tabs item?

Do you have any onblur event handler?

Thanks,
mrhsh
Monday, May 12, 2008
The onCurrentItemChanging event fires before the currentItem property changes the value. The index argument contains the new value, but the old one is still inside currentItem -

tabs.onCurrentItemChanging = function(i){
if (this.getCurrentItem()==0) alert("leaving tab 0?");
}
Alex (ActiveWidgets)
Tuesday, May 13, 2008

This topic is archived.


Back to support forum

Forum search