[whatwg] page refresh and resubmitting POST state

Ian Hickson ian at hixie.ch
Thu Jul 9 17:52:20 PDT 2009


On Thu, 11 Jun 2009, Jeremy Orlow wrote:
> > On Sat, 23 May 2009, Mike Wilson wrote:
> > >
> > > I was thinking about the resubmit problem in a general context, 
> > > specifically how browsers could make it possible for web authors to 
> > > create POSTing pages that avoids giving the dreaded "do you want to 
> > > resubmit" question at all, independent of operation.
> >
> > Just do a redirect like Jonas describes, instead of returning the page 
> > contents directly. You can even redirect to the same URL.
> 
> This would cause additional network round-trips which is suboptimal.

One alternative is to detect the case where JS is enable, and if it is, 
use pushState() and XHR to do the POST in the background and avoid the 
page load altogether.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list