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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force reload or refresh page 3

Status
Not open for further replies.

khue

Programmer
Mar 6, 2001
112
US
Problem: when user clicks a button or link to open a new page, the data that gets display does not show up. I would have to tell the user to manually do a reload or refresh inorder to get the new data to be displayed.

How can I force a page to reload or refresh automatically so that the new data gets displayed and not the old data from the last time?
 
Put this in the head of your document:

<META http-equiv=&quot;refresh&quot; content=&quot;0; Url=entirestate.html&quot;>

content=&quot;<how many seconds until page is reloaded>;

Url=&quot;<what url you want the page to go to>&quot;

Hope this helps. ~Steve

A broken clock is correct twice per day.

A roomful of monkeys on typwriters will eventually write the great american novel.

If you gave an infinate number of rednecks, an infinate number of shotguns to shoot at an infinate number of street signs, they'd eventually recreate all of Shakespears works in braile.
 
I add this to the META tag area to keep the page from caching to begin with. I hate pages that reload automatically. Especially if they contain forms.

<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>

:) » » » » » »
Mike Barone
FREE and Pro CGI/Perl Scripts

FREE Scripts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top