You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

6. April 2010, 11:03:14

nickarls

Posts: 6

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

9. April 2010, 10:36:28

nickarls

Posts: 6

Any help on this would be... helpful

16. April 2010, 12:56:37

nickarls

Posts: 6

Any sort of confirmation would be helpful. I can't event get simple button to focus on a field :-/

20. April 2010, 08:16:43

sgsgashley

Posts: 3

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

26. May 2010, 08:03:29

nickarls

Posts: 6

I'm bumping this as it's getting urgent but at the same time I think there must be some trick/workaround to this as a browser that couldn't focus() wouldn't be of that much use(?)

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.

27. August 2010, 09:40:22

nickarls

Posts: 6

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 :-/

27. August 2010, 11:13:38

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.

1. September 2010, 06:55:10

nickarls

Posts: 6

It would be nice if it would be configurable. It's a shame we'll have to skip the superior browser just because of an issue like this :-/

6. July 2011, 11:14:25

superarek

Posts: 1

bartlomiejopera - Is any progress in your discussion? It'd be great to have an option to change a behavior of a focus in textbox.

Forums » Opera for mobiles/devices » Opera Mobile for Windows Mobile