You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Focusing woes
This may be a silly question but... is JS focusing done somehow differently in Opera Mobile (9.7b3 and 10) than in other browsers?I have a simple input field and a button with a JS snippet that should focus on the field using the normal "get reference and call focus()" and I get the reference but the focus is never achieved.
Simple issue but it's driving me nuts.
Thanks in advance,
Nik
I'm having the same problem & need a solution urgently! Any help would be appreciated. I am calling focus on the first (not hidden, not disabled, not display:none etc) element on the screen in a window.onload() function.
Thanks
Thanks
17. June 2010, 13:51:42 (edited)
Thank you for your feedback.
We are aware of this issue and it is a bit by design. Notice, that Opera Desktop 10.50 behaves the same. Good news is, that this design decision is being discussed.
Unfortunately, I don't know any workarounds.
We are aware of this issue and it is a bit by design. Notice, that Opera Desktop 10.50 behaves the same. Good news is, that this design decision is being discussed.
Unfortunately, I don't know any workarounds.
Thanks for the response. I noticed that the latest desktop Opera (10.61) did focus on the first field.
Any idea as to where this design decision discussion is headed since if there is no focus available we'll have to look elsewhere as a handheld device is tricky enough to handle without being assisted by correct focusing :-/
Any idea as to where this design decision discussion is headed since if there is no focus available we'll have to look elsewhere as a handheld device is tricky enough to handle without being assisted by correct focusing :-/
Here it is:
"This is by design, to prevent the virtual keyboard from popping up when loading a page".
There is no Virtual Keyboard on desktop Opera, so focus is allowed.
"This is by design, to prevent the virtual keyboard from popping up when loading a page".
There is no Virtual Keyboard on desktop Opera, so focus is allowed.
Forums » Opera for mobiles/devices » Opera Mobile for Windows Mobile