Problem timers js

0

I have a web application and this one has MainPage, PageEntity and PageNotice and each of these is associated with a JS file. The goal is to start on the Main page and past x time go to the Entity page and past x time go to the News page. I used the setInterval of JS and it works but with a problem, as does load the pages is always loading the script again and then is always running the timer ... Any solution to solve this?

    
asked by anonymous 23.06.2014 / 21:50

1 answer

1

I believe you can do differently. Create a page and upload content through ajax requests. link

You can load content inside a div, for example. The timer can make requests for these changes.

    
24.06.2014 / 09:59