Beep in browser


Ad

Advertisements

M

Mike

You could create a flash movie with sound and call it with
function:document.write("<flash implementation goes here...>");

//Michael
 
G

Guest

Pretty empty explanation.
I give you half a lemon for the answer.
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)


Mike said:
You could create a flash movie with sound and call it with
function:document.write("<flash implementation goes here...>");

//Michael
 
O

Olaf Rabbachin

Hi,

Arne said:
How can I create a simple beep in the browser when an error occured?

you could issue a ...

Response.Write("<script>alert('Error!');</script>")
Response.End()

...., showing a JR-generated message along the way. There's no built-in
function for JS though that would fire a simple beep (at least not that I
know of). However, since this is a client-thing, you'll have to do it
client-side, hence JS would be the most promising approach I guess.

Cheers,
Olaf
 
G

Guest

I don't think that will sound and it will force the user to hit enter.
I don't prefer that.
 
O

Olaf Rabbachin

Hi,

Arne said:
I don't think that will sound and it will force the user to hit enter.
I don't prefer that.

thing is, you (i.e. the server running your app) don't have any influence
whatsoever on your client, it's just a browser running there. This means
that there is simply no control concerning client-side effects such as
sound. Hence, you'll probably have to use an applet or an ActiveX to be
able to do such things. Pretty much work for little effect plus annoying
installations ...

Cheers,
Olaf
 
Ad

Advertisements

O

Olaf Rabbachin

Hi,

Arne said:
It turns out be easy:
<bgsound src='Chimes.wav' />

good to know, but still - this will a) require whatever .wav to be on the
client. BTW (didn't try it out) - doesn't that play in a loop ..?

Cheers,
Olaf
 
R

Registered User

No. The sound file comes from the server.

Serious Q: Does the sound file play on the server or the client? It is
tough to tell when both run on the same box.

Not-So-Wiseass Q: What will the intentionally silent client miss when
this beep is not heard? It sounds like chrome to me.

regards
A.G.
 
Ad

Advertisements

O

Olaf Rabbachin

Hi,

Arne said:
The sound is in the browser. Not everyone have sound on their computer.

which is why the sound comes from the client-PC, not your server. The way
you issued that command (in the client!), it'll look for that file locally.

Cheers,
Olaf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

howto do a robust simple cross platform beep 11
play sound on Ubuntu 10.4. (pulse audio?) 1
Beep 7
Need a beep sound 0
Validation 0
Validation 1
how to get a beep, OS independent ? 22
How to generate a system beep 6

Top