jayR Posted July 17, 2006 Share Posted July 17, 2006 Ok, so I have an AJAX application that I'm working on that needs to have an "alert sound" played when the current information changes so that the user notices it. I'm not exactly sure what I should go with here, so I'm looking for suggestions from people that have done similar things in the past. Any input/advice would be greatly appreciated. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/14877-alert-sound/ Share on other sites More sharing options...
ChaosXero Posted July 17, 2006 Share Posted July 17, 2006 Simple way: embed a sound file into the page and play it from the javascript. I think, though that PHP has an \a (or similar) alert escape. I don't know where this would play though (I think your server might just beep, and that would be no good).I think embedding could work. Quote Link to comment https://forums.phpfreaks.com/topic/14877-alert-sound/#findComment-59584 Share on other sites More sharing options...
redarrow Posted July 17, 2006 Share Posted July 17, 2006 insert a sound file in a database field.do a cheek if the check exists play the sound file. Quote Link to comment https://forums.phpfreaks.com/topic/14877-alert-sound/#findComment-59585 Share on other sites More sharing options...
micah1701 Posted July 17, 2006 Share Posted July 17, 2006 first, i'd move this to a different forum.then I'd suggest using a visual cue, instead of (or in addition to) audio.many people, especially those surfing from work, don't have speakers on (or attached) Quote Link to comment https://forums.phpfreaks.com/topic/14877-alert-sound/#findComment-59586 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.