Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Prevent expired POST results (Was: Control the window)


  • From: nick at nickfitz.co.uk (Nick Fitzsimons)
  • Subject: [Javascript] Prevent expired POST results (Was: Control the window)
  • Date: Wed Aug 30 19:53:00 2006

On 30 Aug 2006, at 23:47, Chris Double wrote:

> On 8/30/06, Scott Reynen <scott@xxxxxxxxxxxxxxx> wrote:
>> I solve this problem by redirecting POST to GET.
>
> This is a good apprach, I do it as well. It's more generally known as
> the 'Post/Redirect/Get Pattern':
>
> http://en.wikipedia.org/wiki/Post/Redirect/Get
>

And may I be the first to point out that my earlier suggestion to use  
HTTP's "301 moved permanently" is a really bad idea, as it would  
potentially prevent people from ever submitting a form to the  
original address again. (I really shouldn't give advice on HTTP when  
my head's full of XSLT and CSS.)

Apologies to those who've just broken their web apps through my  
advice :-(

Nick
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/