473,466 Members | 1,508 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Playing a WAV file from a Web Page

Can anyone point me to some code that allows the user to play a WAV file by
clicking on a link.

Many thanks.
Nov 20 '05 #1
4 1526
Well, simply linking to the .wav file will work for most users. All they
need is a program, like QuickTime associated with the wav extension.

You can check out:
http://www.fluffbucket.com/html/sound.htm

<a onclick="self.location='myfile.wav'; return false" href="#">Click here to
play</a>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"Andrew Chalk" <ac****@magnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Can anyone point me to some code that allows the user to play a WAV file
by clicking on a link.

Many thanks.

Nov 20 '05 #2
OK. Now if the user clicks on a button that causes a search of a database
for the file name how can my web site then play the file to them?

Many thanks,

Andrew
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eO**************@TK2MSFTNGP15.phx.gbl...
Well, simply linking to the .wav file will work for most users. All they
need is a program, like QuickTime associated with the wav extension.

You can check out:
http://www.fluffbucket.com/html/sound.htm

<a onclick="self.location='myfile.wav'; return false" href="#">Click here
to play</a>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"Andrew Chalk" <ac****@magnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Can anyone point me to some code that allows the user to play a WAV file
by clicking on a link.

Many thanks.


Nov 20 '05 #3
On Thu, 17 Nov 2005 Andrew Chalk <ac****@magnacartasoftware.com> wrote:
OK. Now if the user clicks on a button that causes a search of a database
for the file name how can my web site then play the file to them?
Create a literal object and then output the HTML text in it as mentioned
previously, substituting in the .wav file name.


Many thanks,

Andrew
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eO**************@TK2MSFTNGP15.phx.gbl...
Well, simply linking to the .wav file will work for most users. All they
need is a program, like QuickTime associated with the wav extension.

You can check out:
http://www.fluffbucket.com/html/sound.htm

<a onclick="self.location='myfile.wav'; return false" href="#">Click here
to play</a>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"Andrew Chalk" <ac****@magnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Can anyone point me to some code that allows the user to play a WAV file
by clicking on a link.

Many thanks.



--

fiddlewidawiddum

Nov 20 '05 #4
Thanks!

"Stimp" <re*@spumco.com> wrote in message
news:sl****************@carbon.redbrick.dcu.ie...
On Thu, 17 Nov 2005 Andrew Chalk <ac****@magnacartasoftware.com> wrote:
OK. Now if the user clicks on a button that causes a search of a database
for the file name how can my web site then play the file to them?


Create a literal object and then output the HTML text in it as mentioned
previously, substituting in the .wav file name.


Many thanks,

Andrew
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eO**************@TK2MSFTNGP15.phx.gbl...
Well, simply linking to the .wav file will work for most users. All
they
need is a program, like QuickTime associated with the wav extension.

You can check out:
http://www.fluffbucket.com/html/sound.htm

<a onclick="self.location='myfile.wav'; return false" href="#">Click
here
to play</a>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"Andrew Chalk" <ac****@magnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Can anyone point me to some code that allows the user to play a WAV
file
by clicking on a link.

Many thanks.


--

fiddlewidawiddum

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Brian Basquille | last post by:
Hello all, What is the syntax for simply playing a WAV file in your program? Am learning VB and have two VB books but don't wanna root through them to find the code. Any help would be much...
1
by: Peter Schmitz | last post by:
Hi, I'm just trying to play a *.wav file, making use of the unmanaged function "sndPlaySoundA" in winmm.dll, but I still got one question: How can I avoid, that the sound file itself has to be...
1
by: laredotornado | last post by:
Hello, I want to play an audio file embedded on my page by clicking on an audio image and the page change to a new page. Is there a cross-browser Javascript way to do this? Right now the code I...
2
by: Dave | last post by:
Hi, I am writing a c# application that using a directshow to play file and display it on my C# gui, its work just fine but when i try to open another thread in my c# application the file stop...
7
by: Lee Moody | last post by:
I just want quick and easy way to play a .wav file out the standard sound device. It could even be as simple as activating a sound assigned to an existing windows sound event. Any suggestions?...
8
by: shlomi | last post by:
Hello, It's been long time that I'm investigating on how to play Avi file from memory, with no success. What I'm trying to do is to get a scrambled Avi file to memory, fix same data and...
0
by: Raven Jones | last post by:
Heya all, I'm working on a web-based application (using ASP.NET and C# on .NET 1.1.4322, supporting only IE6 for Windows) that allows for file uploads. Screen real estate is at a premium, so I...
1
by: majestik | last post by:
Question, can I see an event in Javascript that tells me a video starts playing using the <embed src="file.wmv>. I stream the video, but there is a wait time and wanted to pop up a message telling...
0
viswarajan
by: viswarajan | last post by:
I have this requirement from user to hide the page's url from url. He shouldn't know about the page's name he is visiting nor see values passed from one page to other. I heard about url mapping in...
1
by: Sobin Thomas | last post by:
Hi All, I want to play an audio file (wav)in my web page.I used the embed tag method.But it does'n work well in firefox.Is there any .NET class to play audio files?I already tried soundpalyer...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
0
tracyyun
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...
0
isladogs
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.