Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic page refresh

Status
Not open for further replies.

rbeech23

Programmer
Dec 22, 2002
14
GB
I've a web site which doesn't refresh pages when data is removed from a database (mysql).
Is there a way of automatically refreshing the page ?
I've tried all the no cache commands and none of them work.
I'm using jsp/htm/java/mysql to run the site.

In javascript I can use a refresh button with onClick="javascript:window.history.go(0);". This works okay but I'd prefer not to get the customer to have to click. Is there a way of incorporating the above so it executes once when the page loads ?

Thanks
 
Use the refresh header!

Code:
<meta http-equiv=&quot;Refresh&quot; content=&quot;30; URL=http://www.spanketyspank.com/MyDataPage.html&quot;></meta>

This example refreshes the page every 30 seconds. Change the value depending on what you want.

Only thing you need other than that is a radioactive spider!

Cheers,


[monkey] Edward [monkey]

Like Lovecraft? Know Photoshop? Got time for the Unspeakable?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top