How to automatically refresh page every 1 minute?

Codes here !

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum Fan User
php-forum Fan User
Posts: 979
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Tue Sep 04, 2012 12:21 pm

Typically the full refresh of the page is considered bulky and annoying.

Instead you should only update the portion of the page that is changing. You can do this by utilizing AJAX.

Even in the case where your entire page is updating, I would recommend using AJAX with some conditional checks to look for changes in the data.

Lastly, from personal experience I would make it so that updates do not occur when the user is directly interacting with the data. On hover over the data or something along those lines, I would kill the update calls. If Killing the update calls is out of the question, I would then just make the data update on demand via a button or allow the user to pause the updates with the use of a button.

Post Reply