> We've got a system where we'd actually LIKE our
> users to be able to click 'back' and see the form
> they just filled out.
>
> We're not using any of the no-cache header info,
> yet folks' browsers still show 'Warning: This page
> has expired'.
>
> How can we prevent this...?

This occurs when the http request to the previous page was a post rather
than a get operation, i.e. a form submission to the previous page... so ...
if you were to map it out ...

[start page] --link--> [form page] --form submission--> [results page]
--link--> [end page]

The only time the user would get that message in this chain would be hitting
the back button on the end page and going back to the results page which was
generated from the form post...

There are a couple of ways to eliminate the message:

1) use <cflocation> on the results page to replace the results page with the
end page in the browser's history.

2) if you can't use <cflocation> due to a <cfflush> or similar tag used
above the point where you need to relocate, use javascript
location.replace("end page") to replace the results page with the end page
in the browser's hisotry

3) If the form contains only a few limited fields, so there's no risk of
exceeding the maximum length of a URL, you can use method="get" in the form,
which will translate all of the form fields into url fields and post the
information that way. This is usually the case with forms which are used for
navigation, i.e. if in the diagram above the user nagivates to the form page
from the start page with another form submission.

hth

Isaac

www.turnkey.to
954-776-0046

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to