Back button and a Post form

Discussion in 'Javascript' started by Hennie de Nooijer, Jul 15, 2003.

  1. Hi everbody,

    Situation
    I created webpage with a receipt with javascript so when someone
    orders something from a product list a item is registered on the
    receipt. This works fine now.

    The next thing which i created is that the receipt works over multiple
    pages. So when someone pushes a link i read some hiddenfields
    (generated with javascript) into sessionvariables and a redirect to
    proper page has been done. The sessionvariables are read, put into a
    javascriptarray and are shown in the receipt

    The problem
    In short the back button (and the refresh button). Off course when
    someone chooses the products and pushes back, the hidden fields are
    not read by my "session handler". consequence is that the chosen
    products are not shown in the receipt.

    Help
    What can i do? What are my options? Could i put the session handler in
    the history? But then a POST (submit) must happen because the hidden
    fields are in a form.

    I had this problem earlier with another website but then it wasn't
    that annoying but now it's not acceptable for me and i want to find a
    solution for this.

    I saw on a website that, i think, was also created with javascript,
    and every action is in the history registered somehow....

    Greetz,
    Hennie
    Hennie de Nooijer, Jul 15, 2003
    #1
    1. Advertising

  2. Hennie de Nooijer

    Evertjan. Guest

    Hennie de Nooijer wrote on 15 jul 2003 in comp.lang.javascript:
    > The problem
    > In short the back button (and the refresh button). Off course when
    > someone chooses the products and pushes back, the hidden fields are
    > not read by my "session handler". consequence is that the chosen
    > products are not shown in the receipt.


    Address the sourse of the problem, which is the design of your page, not
    the backability.

    For instance, try to refresh from the server and use server variables to
    detect the state and redirect when necessary.
    Hangt af van je server programmeerbaarheid.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    Evertjan., Jul 15, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joby
    Replies:
    0
    Views:
    1,613
  2. Ghafran Abbas
    Replies:
    0
    Views:
    4,178
    Ghafran Abbas
    Oct 12, 2004
  3. sylvia sil
    Replies:
    1
    Views:
    595
    Curt_C [MVP]
    Dec 29, 2004
  4. =?Utf-8?B?YmJkb2J1ZGR5?=

    button and post back

    =?Utf-8?B?YmJkb2J1ZGR5?=, Jul 22, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    444
    =?Utf-8?B?U3JlZWppdGggUmFt?=
    Jul 22, 2005
  5. =?Utf-8?B?Z29yaWxsYQ==?=
    Replies:
    1
    Views:
    749
    Masudur
    May 25, 2007
Loading...

Share This Page