Re: DISabling the back button

2006-11-29 Thread Jiří Mareš
Hi, the header forcing browser not cache the page are: Pragma: No-cache Cache-Control: no-cache,no-store,max-age=0 Expires: 1 Jirka PS: It makes problems with downloading file (attachments) in IE via HTTPS, so you have change header for attachemnt downloding for IE to: Cache-Control: max-age

AW: DISabling the back button

2006-11-29 Thread Peter Schröder
configure the browser! disable the back-button, remove the browser-cache ... some thing like this might help. -Ursprüngliche Nachricht- Von: Cyrille37 [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 29. November 2006 22:42 An: Tapestry users Betreff: Re: DISabling the back button Mats Henricson

Re: DISabling the back button

2006-11-29 Thread Nick Westgate
I usually solve (1) with a "Flow Synchronizer". Search this list, and see: http://www.junlu.com/msg/85270.html For (2) I think the only safe way is to close the window. Perhaps you can ask the user to do this, and then do it via a timer in javascript anyway. Using forms might force a refresh whe

Re: Re: DISabling the back button

2006-11-29 Thread Sam Gendler
gmail used to disable the back button. Now they've hacked it to do the 'correct' thing. It is apparently browser dependent, however, as the back button still sends you to the previous SITE when using gmail in Safari. In firefox, they must be trapping the back button and sending an ajax request.

Re: DISabling the back button

2006-11-29 Thread Daniel Tabuenca
How does Tacos do it? I see the @DirtyFormWarning won't let you click the back button if you changed the form (It will popup a warning instead). I believe they use javascript with window.onbeforeunload event. Here is a link: http://www.webreference.com/dhtml/diner/beforeunload/bunload4.html An

Re: DISabling the back button

2006-11-29 Thread Cyrille37
Mats Henricson a écrit : 2. After a logout. We don't want our users to be able to use the back button to see the last page, from which he clicked the "Log out" link. We know that going somewhere from that brought back page would lead the user to the login page, but none the less, it would

Re: DISabling the back button

2006-11-29 Thread Jesse Kuhnert
throw a RedirectException ? You could optionally also probably remove items from their browser history via javaxscript (I think? ) , but the redirect is probably easiest. On 11/29/06, Mats Henricson <[EMAIL PROTECTED]> wrote: This may be elementary, but we have two cases where we don't want our

DISabling the back button

2006-11-29 Thread Mats Henricson
This may be elementary, but we have two cases where we don't want our users to be able to use the browsers back button: 1. After a submit of a form, when we've sent them to a new page saying "Your blah blah blah has been submitted successfully". Allowing users to go back and submitting again,