Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

beep

Status
Not open for further replies.

bluedragon2

IS-IT--Management
Joined
Jan 24, 2003
Messages
2,642
Location
US
Can an audible beep be included in a CGI print statement?

Thanks

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
maybe with javascript, but perl can not beep the remote clients PC.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Thanks...

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Yes an audio beep could be included with a print statement using a HTML output

So instead of printing like this...

print "Content-type: text/html\n\n";
print "Hello";

Print like this (and include a sound within your HTML page, i.e. give it a background sound)...

print "Content-type: text/html\n\n";
print <<"HTML code";

<HTML><HEAD>
<TITLE>Beep</TITLE>
<bgsound src="Beep.wav" loop="-1">
</HEAD><BODY>
<p>TEXT
</BODY></HTML>

HTML code
 
I will give it a go, thanks...

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
<bgsound src="Beep.wav" loop="-1">

A good suggestion, might work for them in this case, but the beep will not be triggered by anything in particular, the page will load and the beep wav will play. I wonder if javascript might be a better solution if the beep event needs to be triggered by something. But that would be a javascript question and not a perl question.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
I have used a javascript before for a similar purpose, and it worked affectively, and you have alot more control. So I would also suggest using a javascript beep if possible. However if the context you are using the beep in is simple then the HTML background sound is hopefully perfect
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top