Refresh A Page

M

mcarpeneto

I am using Frontpage 2002 and publishing on a GODADDY shared host site
with Frontpage extensions. Like many others, I need to allow a user to
read a guestbook file, add a comment to it, and then look at the
revised guestbook file without hitting the browser's refresh button.
The guestbook file is on one page, the comment entry box is on another
page that moves to a confirmation page when the comment submit button
is pressed. I want to add a custom link button to the confirmation
page that the user can press to go back to the guestbook file page and
immediately see his or her new comment.

I have tried all the usual meta tag codes that various forums say will
cause an automatic refresh of the guestbook file page on reload, but
none seem to work for me. I can get the guestbook file page to auto
refresh every [n] seconds, but I cannot seem to get it to refresh only
when it is called by a custom link button or a navigation button.

What do I need to do?

Thanks
 
R

Ronx

You have to stop the guestbook file being cached by the browser.

Add the meta tags
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
to the <head> section of the page.

If the browser caches the page (which is the norm) and the browser is
not set to check for an updated file with every visit to the server, the
cached version will be used when a link is clicked.

If the browser is set to *always* use (there are users who have this
setting) the cached version of the page, your new page with the no-cache
meta tags will never be downloaded, and the updated page never seen.
This is why the instruction to "refresh the page" should always remain.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top