Problems with safari when the page is refreshing constantly

asp.net Mexico
  • 14 years ago

    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!!

    Rene Rmz

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Nine people can't make a baby in a month.” - Fred Brooks