IE vs Firefox Button Disabled On Back Button Click Issue

Discussion in 'Javascript' started by ryanp@ungerboeck.com, Aug 1, 2006.

  1. Guest

    When submitting a form we disable the buttons on a page.

    In Firefox 1.0.5 and IE, if you submit a form where the buttons are
    disabled (preventing multiple trips to the server), continue to the
    next page, and then hit the back button... the buttons were not
    disabled... which is what I want.

    In Firefox, 1.5 if you submit a form where the buttons are disabled
    (preventing multiple trips to the server), continue to the next page,
    and then hit the back button... the buttons ARE disabled... which was
    NOT what I wanted.

    the fix was simply to add onunload="" to the body tag.

    <body>

    becomes

    <body onunload="" >

    ------------

    This is a note for anyone who is having a similar problem... I realize
    the different design considerations for not disabling buttons... in my
    case very little is done in javascript... the server does the
    validation of the form... we decided to disable buttons to stop
    repetitive submit clicks (and hence, multiple server hits)

    -----------
    , Aug 1, 2006
    #1
    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. Bob Schroeder

    disabled button still posts back?

    Bob Schroeder, Jul 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    403
    John Saunders
    Jul 6, 2004
  2. NH
    Replies:
    0
    Views:
    581
  3. Dave Farrance

    Firefox back-button disabled

    Dave Farrance, Oct 10, 2010, in forum: HTML
    Replies:
    1
    Views:
    1,583
    Neredbojias
    Oct 10, 2010
  4. NH
    Replies:
    0
    Views:
    129
  5. Useful Info

    Firefox back button takes me back 2 pages.

    Useful Info, Jun 3, 2007, in forum: Javascript
    Replies:
    0
    Views:
    338
    Useful Info
    Jun 3, 2007
Loading...

Share This Page