Odd Netscape: Sound steals focus.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Dickow

    Odd Netscape: Sound steals focus.

    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.f rames['input'].window.documen t.forms
    ['MsgForm'].elements['M'].value; // for debugging, get what may be in
    there.
    window.parent.f rames['input'].window.documen t.forms
    ['MsgForm'].elements['M'].value = oldVal + " testing"; // type it out.
    top.window.fram es['input'].window.documen t.forms
    ['MsgForm'].window.focus() ; // try to regain focus.
    // window.top.wind ow.frames['input'].window.documen t.forms
    ['MsgForm'].elements['M'].window.focus() ; // no luck either.

    Any thoughts?
    --
    *************** *************** *****
    * Bob Dickow (dickow@uidaho. edu) *
    * Hampton School of Music *
    *************** *************** *****
  • Robert Dickow

    #2
    Re: Odd Netscape: Sound steals focus.

    Adding to my own post... It seems that the problem
    is really one in NetScape in the QuickTime pluggin
    that plays .wav files. It must be essentially
    opening a window (even if the embed specifies
    no dimensions and/or the hidden attribute.). So,
    I found out that in fact my code below does 'work'
    more or less on its own, but 'fails' because the
    pluggin seems to disorient things a bit. Now, if
    I can figure out how to get the code recover
    from the pluggin....

    Robert Dickow <dickow@uidaho. edu> wrote in
    news:Xns943E45D 6ED83dickowuida hoedu@216.168.3 .44:
    [color=blue]
    > 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.f rames['input'].window.documen t.forms
    > ['MsgForm'].elements['M'].value; // for debugging, get what may be in
    > there.
    > window.parent.f rames['input'].window.documen t.forms
    > ['MsgForm'].elements['M'].value = oldVal + " testing"; // type it out.
    > top.window.fram es['input'].window.documen t.forms
    > ['MsgForm'].window.focus() ; // try to regain focus.
    > // window.top.wind ow.frames['input'].window.documen t.forms
    > ['MsgForm'].elements['M'].window.focus() ; // no luck either.
    >
    > Any thoughts?[/color]



    --
    *************** *************** *****
    * Bob Dickow (dickow@uidaho. edu) *
    * Hampton School of Music *
    *************** *************** *****

    Comment

    Working...