R
ryanp
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)
-----------
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)
-----------