Problems with safari when the page is refreshing constantly

Rene_Rmz

Registered
Hi Everyone!!!

I have a problem develoing an application in .Net. that is working in MAC with Safari 2.0.4. The application have a page that is refeshing every 3 sec. and over 40 min later the safari stop working, don´t responds and when you try to open an other safaris window, they close in that moment (all the safaris windows).


Does anyone have the same problem and know how to fix it?


Have any sugestion?


Are "setInterval" or "clearInterval" the problem?

<Script language="javascript">

<!--

if (window.refrescarAhoraPrin)

clearInterval(refrescarAhoraPrin);

refrescarAhoraPrin = setInterval("Timer1()",3000);



function Timer1()

{

if (LeerCookie("Refresco")== "1")

{

parent.TimerPrincipal.location = "TimerPrincipal.aspx";

}

else

{

if (window.refrescarAhoraPrin)

clearInterval(refrescarAhoraPrin);

refrescarAhoraPrin = setInterval("Timer1()",3000);

}

}

tks for your help!
Rene Rmz
 
Back
Top