Playing a sound when a field is updated

M

Mike Minor

I have a request from a client to play a sound when a specific <input
type=text> field has been updated with new data from a server side script.
They have not specified the sound ( yet ), so I'm thinking of using one of
the standard MS .wav files. I know someone will respond that some user will
be running unix/linux or mac's, but that is not the case here. This is an
intranet application, and the client has standardized on i.e 6.0+ on windows
based machines. So cross browser compatibility is not an issue.

Anyone have any ideas?

Thank you,

Mike Minor
 
M

Mark Fitzpatrick

Mike,
This is trickier than you may think. If the web page is
disconnected, how is it retrieving the information? The best bet is probably
going to be on the server side. If there is a server-side check that can be
done when a page reloads to determine if a record has changed recently, then
you can probably fire a javascript to play a sound using the OnLoad event of
the page's body tag. Unfortunately though, web pages don't work like normal
desktop applications that most clients think of and there aren't very good
ways to push data to it. Also, the mechanism to try to determine if
something has changed could be difficult.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Top