> http://teak-furniture.co.uk/index.php3?SCREEN=department&department=2

Very nice!

> I have a problem that if I add an item, then view the cart and click the
> browser 'Back' button I get a "Data Missing" response:
>
> ["This document resulted from a POST operation and has expired from the
> cache. If you wish you can repost the form data to recreate the document
> by pressing the reload button."]
>
> If the user takes the offer of a 'reload' at this point, another item is
> added to the cart. This is obviously a bit less than good.
>
> I've found that similar behaviour can be got out of the working-dogs
> demo by clicking the browser 'Forward' or Back button after adding an
> item and/or viewing the cart.
>
> I can't rely on my visitors not to do this and I'd really appreciate any
> help people on the list can offer about a solution.

This is a problem with HTTP and browser history.  We're sending headers
to make the browser expire pages so that the user will at least have to
consciously decide to re-submit form data.  I checked Amazon for what
they do...and it appears that they ignore it any time you try to add an
item to your basket twice.  Nice trick, but that doesn't work with FreeTrade
because we support shipping to multiple addresses by allowing the items
to occupy multiple line items.  But you could get rid of the forms for
using multiple addresses and change the behavior of ADD_BASKET so that
it ignores multiple adds.

Now, there is a way to clear out browser history with javascript, so you
might pursue this angle.  It's not neccessarily very nice, though.

Leon



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to