Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto refresh web page

I have a web page which allows the user to carry out various operations that in turn modify the database. Also, this web application needs to keep track of various fields in database that keep changing with time. Is refreshing the page every few seconds the best possible way to implement this? For example, if there is a long list on the page requiring scrolling, it is hard to view the list since the page keeps resetting due to the refresh. I know, there are ways to retain the position of the scroll. But, could I use something more efficient?

like image 363
Epitaph Avatar asked Jan 15 '09 02:01

Epitaph


1 Answers

Place it under head tag

<meta http-equiv="refresh" content="5">

This will refresh page every after 5 seconds.

For other option refer link text

like image 81
Satya Avatar answered Sep 23 '22 02:09

Satya