Back, Back, Back, .... Jabber seeks your help!

jabber (jabber)
本文发表在 rolia.net/zh 相约加拿大网上社区枫下论坛
Dear Friends, I have a seemingly simple issue to consult with you.

Context: Let me say I am doing E-commerce things. I have two pages.
Page A displays un-placed order items in a shopping card and a Button
named "Place Order". Once I hit the "Place Order" button, the Http Request will be send to the server (Whatever it is). After the order is processed, server will send a response--- Page B. Now, now, the user may hit the "Back" button on the browser menu and see page A again. It is likely that the user will click the "Place Order" button in Page A again and re-place the order. This will be a big problem.

Requirement: I don't want to show the Page A again after the order has been placed. Idealy, as the user clicks the "back" button on the menubar of the browser, I should pull a new page (But with the same URI as page A) that tells the user "You have no items in your shopping cart" or "There is no item in your shopping cart".

Analysis: This is completely a client-side problem. There is no thing to do with server-side. In priniclple, it should be resolved using Client-side Script. However, VB script should be excluded because or corporate politics.

State of Issue: I have already tried to seek advice from the people around me. But I have not yet seen the solution. At the very beginning,
my manager advocated that the issue was a piece of cake. He suggested solving the problem by using META tag in the header of Page A . It turned out to be a No-Go. Indeed, people can set Expires and
Cache-Control (or Pragma) in the META tags, but they are meaningful ONLY for the proxy server. My issue has nothing to do with the proxy, because what the user sees second time is a cache in the Browser,
not in the proxy. In other words, as the user hits the "back" button, the browser does not send any request to the server (via the proxy).
Actually, what I need is NOT using the cache in the browser, I hope to send a request to server so as to refresh the page.

Thanks: For your advice.
更多精彩文章及讨论,请光临枫下论坛. 网址: rolia.net/zh
2001-2-16 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Back, Back, Back, .... Jabber seeks your help!

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT杂谈