Kill the tick sound on refresh?

  • Thread starter Thread starter Bruce W.1
  • Start date Start date
B

Bruce W.1

My web app refreshes once a minute, using a meta refresh tag. Is there
a way to eliminate the tick sound emitted by IE when it refreshes?

Thanks for your help.
 
Don't you hate that sound!?!? I would bet money that Microsoft was NOT
getting hords of protesting customers picketing outside Redmond and chanting
"We want a sound when we navigate!" I don't know where they get the idea
for some of these things they force on us.

But I digress...

I don't know if this would still work in .Net, but in non-.Net environments
(I've used it as recently as W2K and IIS5.0), you can use remote scripting
to get fresh data for a field without refreshing the page. Doing so
prevents the Navigate event and it's the Navigate event that causes the
sound.

If you are in control of the client, you can also go to Control Panel ->
Sounds and under Windows Explorer set the Start Navigation sound to None.
 
This is too hacky for words but...

If you put the content of your page in an iframe and you use javascript to
do the reload by reassigning the src, you can avoid the click. You can
avoid other irrication refreshing artifacts by double-buffering the iframe
like this:

<iframe id=Content0 frameborder=0 scrolling="no"
src=""
width="100%" height="<%=sHeight%>">
</iframe>
<iframe id=Content1 frameborder=0 scrolling="no"
src=""
width="100%" height="<%=sHeight%>"
style="display:none;background:lightblue">
</iframe>


var theURL = "contentPage.aspx";
var CurrentlyVisible = 1;
function ReloadContent()
{
if (navigator.appName.indexOf("Netscape") == -1)
{
if (CurrentlyVisible == 0) CurrentlyVisible = 1;
else CurrentlyVisible = 0;
if (document.getElementById("Content"+CurrentlyVisible).src != theURL)
{
document.getElementById("Content"+CurrentlyVisible).src = theURL;
}
else

document.getElementById("Content"+CurrentlyVisible).contentWindow.location.r
eload(true);
}
else
{
CurrentlyVisible = 0
document.getElementById("Content"+CurrentlyVisible).src = "";
document.getElementById("Content"+CurrentlyVisible).src = theURL;
}
}
window.setInterval("ReloadContent()",5000);
 
Back
Top