Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Playing a WAV file from a Web Page

1 view
Skip to first unread message

Andrew Chalk

unread,
Nov 16, 2005, 7:50:22 PM11/16/05
to
Can anyone point me to some code that allows the user to play a WAV file by
clicking on a link.

Many thanks.


REMOVE @removeopenmymindremovemetoo.andmenet Karl Seguin

unread,
Nov 16, 2005, 9:30:18 PM11/16/05
to
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:%23GlDcDx...@TK2MSFTNGP15.phx.gbl...

Andrew Chalk

unread,
Nov 16, 2005, 9:37:28 PM11/16/05
to
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:eOs3d7x6...@TK2MSFTNGP15.phx.gbl...

Stimp

unread,
Nov 17, 2005, 3:32:58 AM11/17/05
to
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:eOs3d7x6...@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:%23GlDcDx...@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

Andrew Chalk

unread,
Nov 17, 2005, 10:19:19 AM11/17/05
to
Thanks!

"Stimp" <r...@spumco.com> wrote in message
news:slrndnog1...@carbon.redbrick.dcu.ie...

0 new messages