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 (di****@uidaho. edu) *
* Hampton School of Music *
*************** *************** ***** 1 2197
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 <di****@uidaho. edu> wrote in
news:Xn******** *************** *****@216.168.3 .44: 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 (di****@uidaho. edu) *
* Hampton School of Music *
*************** *************** ***** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: AnnMarie |
last post by:
My JavaScript Form Validation doesn't work at all in Netscape, but it
works fine in IE.
I made some of the suggested changes which enabled it to work in IE.
I couldn't make all the changes because then it didn't work in IE.
How can I enable this javascipt form validation to work in Netscape?
When I use netscape, none of the alert boxes appear. It submits the
form without validating anything.
|
by: CES |
last post by:
All,
I'm having a problem returning focus back to an input field in Netscape. The
code works in IE and Opera but not in netscape6+.
Basically I have a function that is called upon exiting a form field, if the
|
by: Frances Del Rio |
last post by:
I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are positioned
consistently in IE and Netscape, in Netscape (7.1) the bar div ONLY is
about 10px ABOVE where it should be.. code:
HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>
|
by: Ron M |
last post by:
I am sure this is a simple issue, but being a beginner I am struggling.
In the following js function I am attempting to make sure no numbers are
within "name" controls. I want to pass the text value of the HTML
control and the control name into the function:
function CheckForNumbers (strString, strField) {
var result = true;
var validNums = "0123456789";
var alertHeader = "The following error(s) occured:\n\n";
var alertErr = "";
for...
|
by: Asterbing |
last post by:
Hello,
Here is a page which contains an "evoluated" (to distinguish-it from the
simple one) way to hear sound on a html page event. From my memory, it
worked under all major browsers, but didn't succeed these last days.
I've just tried it today under IE6, Netscape 7, Mozilla 7 and Opera 1.6.
And it only works under IE.
Could you try, please. Is it the same for you ?
| |
by: register_allocation |
last post by:
I have a frameset where I call a JavaScript function in the onLoad
method:
.... <frameset cols="..." onLoad="setFn()">
... <frame name="data_frame" ...>
</frameset>
In setFn, I am dynamically loading the contents of the 'data_frame',
which works fine. I then want to set focus to the 'data_frame':
|
by: Jovo Mirkovic |
last post by:
Hi,
We are working on some application in DirectX, and we are using
DirectSound, like this
Public Sub playSound(ByVal isloop As Boolean, ByVal fileName As
String)
Try
stopSound()
sound = New
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |