R
Robert Dickow
Here's an interesting problem:
When Netscape Nav plays an embedded sound, the current window will
lose focus. Specifically, a user may be typing into a text
input field, but an embedded sound in another frame (refreshed) will
cause the window to lose focus. The user can not even regain focus
by clicking in the text field; one must click first in the window,
then click in the text input field in order to continue typing.
(Internet Explorer has no such problem, BTW.)
Anyway, I am trying to kludge a workaround by having some javascript
attempt to reset the focus to the input field after the embedded
sound is played. Not luck yet making this work, I'm afraid:
var oldVal = window.parent.frames['input'].window.document.forms
['MsgForm'].elements['M'].value; // for debugging, get what may be in
there.
window.parent.frames['input'].window.document.forms
['MsgForm'].elements['M'].value = oldVal + " testing"; // type it out.
top.window.frames['input'].window.document.forms
['MsgForm'].window.focus(); // try to regain focus.
// window.top.window.frames['input'].window.document.forms
['MsgForm'].elements['M'].window.focus(); // no luck either.
Any thoughts?
When Netscape Nav plays an embedded sound, the current window will
lose focus. Specifically, a user may be typing into a text
input field, but an embedded sound in another frame (refreshed) will
cause the window to lose focus. The user can not even regain focus
by clicking in the text field; one must click first in the window,
then click in the text input field in order to continue typing.
(Internet Explorer has no such problem, BTW.)
Anyway, I am trying to kludge a workaround by having some javascript
attempt to reset the focus to the input field after the embedded
sound is played. Not luck yet making this work, I'm afraid:
var oldVal = window.parent.frames['input'].window.document.forms
['MsgForm'].elements['M'].value; // for debugging, get what may be in
there.
window.parent.frames['input'].window.document.forms
['MsgForm'].elements['M'].value = oldVal + " testing"; // type it out.
top.window.frames['input'].window.document.forms
['MsgForm'].window.focus(); // try to regain focus.
// window.top.window.frames['input'].window.document.forms
['MsgForm'].elements['M'].window.focus(); // no luck either.
Any thoughts?