|
| Trouble focusing to an iframe (Opera, designMode = on) |
 |
Sun, 13 May 2007 12:42:54 +070 |
I'm using Opera 9.20
Suppose I have an iframe in which I have set its document's designMode to
on. Is there a way to programatically give focus to that frame and allow
the user to type afterwards?
In IE 6 and Firefox 2.0, this works:
frames['the_id'].focus();
In Opera 9.00, after calling that code keyboard events (keypress, keydown)
from the frame's document is registered, however no key appear there when
a user types (the typing cursor/caret doesn't show up either).
example: http://agro.web.ugm.ac.id/operabug/operabug.htm
|
| Post Reply
|
| Re: Trouble focusing to an iframe (Opera, designMode = on) |
 |
Tue, 15 May 2007 11:58:27 +020 |
On Sun, 13 May 2007 07:42:54 +0200, Agro Rachmatullah wrote:
> I'm using Opera 9.20
>
> Suppose I have an iframe in which I have set its document's designMode
> to on. Is there a way to programatically give focus to that frame and
> allow the user to type afterwards?
>
> In IE 6 and Firefox 2.0, this works:
>
> frames['the_id'].focus();
>
> In Opera 9.00, after calling that code keyboard events (keypress,
> keydown) from the frame's document is registered, however no key appear
> there when a user types (the typing cursor/caret doesn't show up either).
>
> example: http://agro.web.ugm.ac.id/operabug/operabug.htm
>
> Thanks a lot
I don't know enough JavaScript to offer a workaround (apart from clicking
in the textarea to focus it...). I can can tell you though that the
testcase works as you want in my Kestrel (next big Opera release) build.
--
Rijk van Geijtenbeek
Opera Software ASA, Documentation & QA
|
| Post Reply
|
|
|
|
|
|
|
|
|
|