Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound won't play when IE Minimized

Status
Not open for further replies.

Tinkerers

Technical User
Sep 26, 2002
90
US
May I ask for your advice please ?

I have a web page that does an automatic refresh every 5 minutes. If certain criteria are met it plays a sound. This works perfectly if the page is maximized. However, if the user minimizes the page, the sound will NOT play until you actually maximize the page again. Any idea how to correct this, so it will play the sound even when minimized ?

Here's the refresh:
<META HTTP-EQUIV="refresh" CONTENT="300">

I'm using this to play the sound:

response.write"<bgsound src=""images/newalert.wav"" loop=""1"">"


Thanks so much !
Paul
 
It looks like your sound plays when the page loads and you just want to reload the page every 300 seconds? (5 mins)
 
Yes, that's correct. However, if the page is minimized, the sound does NOT play when the refresh occurs. I know the refresh is happening as I can here the click. But no sound plays UNTIL I click on the minimized page, then the sound plays. It's like the event is put on hold until the maximize takes place ???
 
This appears to be more of a question of browser behavior than one of server-side scripting.

Did you check yet to see if FireFox or other browsers do the same thing?

PS: There are experts in these other forums that know more about the capabilities and limitations of browsers:
HTML, XHTML & CSS = forum215
JavaScript = forum216
 
Actually, I don't know if anything other than IE experiences this behavior.

Although, I think I found a solution. I am now using this html:
response.write"<EMBED src=""images/newalert.wav"" hidden autoplay=""true"">"

instead of this:
response.write"<bgsound src=""images/newalert.wav"" loop=""1"">"

It seems to be working well and the sound now plays when the browser is minimized !

Thanks anyways !
Paul
 
Thanks for posting your solution for the benefit of others with this question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top