[Zope] multiple visits to dtml-method page

Curtis Maloney curtis@umd.com.au
Thu, 23 Mar 2000 09:46:33 +1100


On Thu, 23 Mar 2000, Daniel.Weber@SEMATECH.Org wrote:
> I have a dtml-method page that displays a table of values and allows the viewer
> to delete on of them (using an sql method on the next page).  All works as
> expected, but I noticed an odd thing:  when I used the back button on the
> browser the table of values was not updated, but showed the old values.  This is
> bad, because people will think their delete did not work.
>

Yes, most browsers do this.  It's simply a result of their caching.

> How do I force a page update?  I checked the IE5 options to make sure it was
> checking the date stamp on every visit, so I don't think it's a cache issue,
> though I don't know enough about browsing to say it isn't.  Shouldn't forms be
> re-submitted on the back button?

The only way i know of involves catching hits to the back button involving
JavaScript.  Not pretty, IMHO, nor terribly portable.

> 
> I'm sort of confused how this is all handled....
> 

Upgrade your users? (o8

Either that, or, as some of our sites have, put up a message saying "DO NOT
PRESS THE BACK BUTTON, PRESS THIS ONE INSTEAD -->"

-- 
Have a better one,
	Curtis.

<dtml-var standard_work_disclaimer>