Forum: Ruby on Rails disabled submit button

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eac06cd53a7ff43d0d87f31dafc9951c?d=identicon&s=25 Difei (Guest)
on 2007-06-27 17:27
Greetings all,

I created a form_remote_for form for some AJAX jobs and I would like the
submit button to be disabled when you click the submit button and
reenable it after the jobs are finished, so I add a

:onclick => "document.getElementById('addub').disabled = true"

for the submit_tag, but I found that this will break the other functions
(the corresponding RJS file I've written for highlighting and reenable
the button) in IE6. All are OK in Firefox, could anyone tell me how to
archive this in both IE6 and Firefox? thanks very much!

This topic is locked and can not be replied to.