----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, May 05, 2007 7:11 AM
Subject: Re: [php-list] sound in a php script?


----- Original Message ----- 
From: "Andrew O'Brien"
Subject: [php-list] sound in a php script?


I'm just beginning to try to learn PHP scripts, a friend compiled a
script that works well and uses a form post method to essentially
create an IRC type chat scenario.
<snip>
 Andy.
--------------------------
Hello Andy,
                 You can do this with HTML/Javascript. Let me know if this
script doesn't work and I will debug it for you. Best to use a .mid for
sound but a .wav should be ok for most browsers.
<snip>
--------------------------
I just realised that is script is going to beep with every page reload as 
the previous value for the text is lost.
There are ways around this.
1) Use frames so that the text can be stored in a parent document.
2) Use and AJAX like script.
3) Store a serial number in a cookie and beep on page load when that serial 
number has changed. (no Javascript needed)
4) Store a serial number in a session on the server and beep on page load 
when the serval number changes. (no Javascript needed)

The serial number can be incremented every time a new post is made.




Reply via email to