Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: SOUND

by alfie (Pilgrim)
on May 07, 2001 at 15:32 UTC ( #78475=note: print w/replies, xml ) Need Help??


in reply to Reaped: SOUND

Clicking a link does happen on the browser-side - and perl can't be used there (at least no version that I know of ;) So Sinister is right.

But I doubt that you can start a sound when clicking on a link. Playing a sound is a page-specific thing that is just done while a page is displayed - not when it changes. To say it in other words: If you really want to do it that way the user will have to wait until your sound stopped before the next page will be loaded. I don't think that this is very userfriendly, so try to avoid it.

Conclusion: This in nothing perl-related - get yourself a good JavaScript documentation.
--
use signature; signature(" So long\nAlfie");

Replies are listed 'Best First'.
Re: Re: SOUND
by isotope (Chaplain) on May 07, 2001 at 20:37 UTC
    But I doubt that you can start a sound when clicking on a link.

    Sure you can :) You just specify a JavaScript function as the OnSubmit action for the form, or as the HREF of the link. The function first launches the sound in a new window, then submits the form or returns the location for the link. Of course, by the time the sound loads and then the plugin to handle it loads and starts playing, the form may already be fully submitted...

    --isotope
    http://www.skylab.org/~isotope/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://78475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2022-01-20 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?