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. 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? I'm sort of confused how this is all handled....
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>
IE will show a cached page, regardless of the settings, when hitting the back button. If you were to type in the URL, it might actually get the page, but you can never be too sure with IE. Its cache is terribly misbehaved. Try making the page uncacheable with a Cache-Control: no-cache header. To verify if this is the problem, hit ctl-reload in IE (shift-reload in netscape) to force a reload of the page. --sam Curtis Maloney wrote:
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>
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hello people I have a list to pass in as a parameter to dtml-in but before doing that I would like to eliminate duplicates form the list. ie in ['1','2','1'] I want to skip the duplicate 1. is there a zope hack for this or do I have to use an external method TIA sathya -- ########################## necessity is the mother of invention ##########################
participants (4)
-
Curtis Maloney -
Daniel.Weber@SEMATECH.Org -
Sam Gendler -
sathya