04-10-2012 07:13 PM
Does anyone have a sample of how to set the focus on a input text box while using the bbui.js framework? Everything I have tried so far doesn't work. Thanks in advance for your help.
Solved! Go to Solution.
04-13-2012 02:52 PM
Which hardware are you testing this on (Smartphones or PlayBook)? If it is for Smartphone, you may be able to use ocus-mode navigation and then use setFocus to target a specific input element.
What other options have you tried so far?
04-13-2012 03:41 PM
I am testing this for smartphones. Here is a comment from Tim Neil in another thread which explains why it is happening.
<snipped from thread>
yesterday
You likely can't set the focus in the onscreenready event of bbUI. This event fires when the screen has been loaded into memory so that you can manipulate it before it is inserted into the DOM.
I have an ondomready event that will be added and available in 2.5 weeks ![]()
</snipped from thread>
04-14-2012 10:01 AM
I'm also waiting for this one ![]()