|
|
 |
Javascript history object
date posted 24th April 2001 14:32
Here's the scenario...
on the site there are several news stories, at the bottom of each, is the
option to add comments, when you click this you are taken to a form which
allows you to input your comments,
on submitting the form you are taken to a thanks page, which should then
redirect you back to the news story.
the problem is that using javascript:history.go(-2); you are indeed taken
back to the story but the page needs to be refreshed so as your comments are
visible, I have tried using a no cache meta tag but this doesn't appear to
work. any ideas.
my only thought was to write a cookie on the thanks page that is looked for
on the news story, if its found then the page is refreshed (and the cookie
deleted) but this seems to be a lot of work for a simple task .
(this is on a Linux/apache/perl server so ASP isn't an option. ;-)
decal
|
 |
|