Home All Groups Group Topic Archive Search About

Playing a WAV file from a Web Page

Author
17 Nov 2005 12:50 AM
Andrew Chalk
Can anyone point me to some code that allows the user to play a WAV file by
clicking on a link.

Many thanks.

Author
17 Nov 2005 2:30 AM
Karl Seguin
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

Show quoteHide quote
"Andrew Chalk" <ach***@magnacartasoftware.com> wrote in message
news:%23GlDcDx6FHA.3976@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.
>
Author
17 Nov 2005 2:37 AM
Andrew Chalk
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
Show quoteHide quote
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eOs3d7x6FHA.1020@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" <ach***@magnacartasoftware.com> wrote in message
> news:%23GlDcDx6FHA.3976@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.
>>
>
>
Author
17 Nov 2005 8:32 AM
Stimp
On Thu, 17 Nov 2005 Andrew Chalk <ach***@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.


Show quoteHide quote
>
> Many thanks,
>
> Andrew
> "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
> wrote in message news:eOs3d7x6FHA.1020@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" <ach***@magnacartasoftware.com> wrote in message
>> news:%23GlDcDx6FHA.3976@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
Author
17 Nov 2005 3:19 PM
Andrew Chalk
Thanks!

Show quoteHide quote
"Stimp" <r**@spumco.com> wrote in message
news:slrndnog1p.jpn.ren@carbon.redbrick.dcu.ie...
> On Thu, 17 Nov 2005 Andrew Chalk <ach***@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:eOs3d7x6FHA.1020@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" <ach***@magnacartasoftware.com> wrote in message
>>> news:%23GlDcDx6FHA.3976@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
>