MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Using the browser back button and updating an item-list



Hi Folks,

I have gone round and round and round with this, trying to think of all the 
possible ways to accomplish this task. No luck yet. I have a persistent 
"mini basket" on all pages that just uses:

[if items]
   [then]
   [item-list]
      [item-quantity]
      [item-field title]
   [/item-list]
   [/then]
   [else]Your shopping cart is empty.
   [/else]
[/if]

to list whatever a person has in their basket. Actually, I put this code in 
its own file and use [include ..] to pull it in, so it will work on 
flypage.html and browse1.html. Anyway, the problem is when I add an item to 
the basket (which takes me to basket.html) and then use the browser's back 
button to return to the page, the mini basket doesn't update itself (since 
the page is cached). Now if I put <META HTTP-EQUIV="expires" CONTENT="0"> on 
the page, that works out fine, and the mini basket updates itself to reflect 
the added items when I return to that page. However, when the page in 
question is the search results page, this is a problem because you get a 
"Data Expired" page telling you that this page resulted from a POST 
operation etc. etc. when you return to it.

I have zero programming background, so this may be a dumb question, but is 
this something a scratch variable could take care of? By being passed when 
the user clicks on "Add Item" and then re-read when the browser's back 
button is pressed? Is there a "Scratch Variables for Beginners" somewhere?! 
Thanks,

Miles


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com


Search for: Match: Format: Sort by: