MiniVend Akopia Services

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

Re: Using the browser back button and updating an item-list



I think your problem has to do with the POST vars. Basically, in order
for that page to refresh those variables must be entered in. I think you
might come up with a way to handle it using "GET" variables that create
a "static" link.

In a "POST" situation, as I understand it, the browser tells the server
directly the info.

It goes a little some thing like this:
Say you connected to a web server (I recommend trying 'telnet' just to
give this a whirl) and type:

POST /cgi-bin/test.cgi HTTP/1.0
Content-Length: 19
name=Eugene&age=21 
EOF

Well, then your program parses the data (name, age) and creates those as
values.

Now in a GET situation, one does a 
GET /cgi-bin/test.cgi?name=Eugene&age=21
EOF

The point of all this being that a link is easy to reload/refresh. POST
vars are not.
Searches are 100% POST. You might just be out of luck on that unless you
can come up with a way to handle a GET. Or, perhaps remove the basket &
the expiration. Which is probably your best bet.

Miles Eddins wrote:
> 
> ******    message to minivend-users from "Miles Eddins" <miles_eddins@hotmail.com>     ******
> 
> 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
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: