Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Trusted Contributor
Posts: 152
Registered: ‎02-12-2011
My Device: Not Specified

detecting focus events



I'm trying to detect focus events by adding eventlisteners to "tabindex" elements but it seems that the below code is not being executed


function scrto(){window.alert('ok');//window.scrollTo($(this).}

$('[tabindex]').each(function(i,e){ this.addEventListener('focus',scrto,true); });


I have the use focus navigation congi.xml option checked and 


as obvious tabindex on the desired elements...yet nothing when running on the simulator...


any advise on this?