IE vs Firefox Button Disabled On Back Button Click Issue

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)

-----------
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top