:: Forum >>

Retrieving index of the tab when 'onKeyEnter'

OnKeyEnter has the following syntax: {obj}.onKeyEnter = function(event){...};
onItemClicked has the following syntax: {obj}.onItemClicked = function(event, index){...};

How do I retrieve the index of a tab when I pressed enter!?

I would have expected this: {obj}.onKeyEnter = function(event,index){...}; to work and let me have the new index but that did not work.
I also tried {obj}.getTabIndex(); (conform this article: http://www.activewidgets.com/aw.system.control/tab-index.html ) but this always returns 0.

Wim
Friday, September 12, 2008
HA!

this.getCurrentItem()

works :)

Sorry for the trouble.
Wim
Friday, September 12, 2008

This topic is archived.


Back to support forum

Forum search