P
Penny
Hi all,
I've built an online shopping cart using ASP Classic(based on a 'WebThang'
tutorial). The shop cart page (with table showing customers selected items
and costs) has only 3 buttons/links.
1: Back to Shop: Uses 'javascript:history.go(-1)' to go to previous page.
2: Remove Item(one next to each item in cart): Clears the selected item from
the session variable array redisplays the page.
3: Checkout: Proceeds nicely to the pages that collect the customers
details.
My Problem:
If the user clicks the 'Remove Item' link/button, the page efficiently
redisplays with the selected item removed from the list. However, if the
user then clicks either the 'Back to Shop' button or the browser Back button
(intending to continue shopping), the cart page redisplays showing the
removed item back in the list as it was before they removed it. Although the
session variable array remains correctly unaltered it is very confusing to
the user and will probably cause them to feel that their shopping list has
been 'messed up' and is now invalid.
I understand that the browser is just 'doing what it is told' but need to
find a way to avoid this confusing behaviour.
Any ideas,
Regards
Penny.
I've built an online shopping cart using ASP Classic(based on a 'WebThang'
tutorial). The shop cart page (with table showing customers selected items
and costs) has only 3 buttons/links.
1: Back to Shop: Uses 'javascript:history.go(-1)' to go to previous page.
2: Remove Item(one next to each item in cart): Clears the selected item from
the session variable array redisplays the page.
3: Checkout: Proceeds nicely to the pages that collect the customers
details.
My Problem:
If the user clicks the 'Remove Item' link/button, the page efficiently
redisplays with the selected item removed from the list. However, if the
user then clicks either the 'Back to Shop' button or the browser Back button
(intending to continue shopping), the cart page redisplays showing the
removed item back in the list as it was before they removed it. Although the
session variable array remains correctly unaltered it is very confusing to
the user and will probably cause them to feel that their shopping list has
been 'messed up' and is now invalid.
I understand that the browser is just 'doing what it is told' but need to
find a way to avoid this confusing behaviour.
Any ideas,
Regards
Penny.