permaculture playing cards*
The moose likes JSF and the fly likes onclick= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "onclick="this.disabled=true;"" Watch "onclick="this.disabled=true;"" New topic


Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
onclick="this.disabled=true;" is working for me in IE but not in Firefox. Below is the code.

Ultimately I am trying to grey out the "Submit" button by using the following code.

onclick="setTimeout('document.getElementById(\'' + + '\').disabled=true;', 50);" styleClass="button">

but onclick="this.disabled=true;" is not working for me at the first place in Firefox.

SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
Don't get me started about those stupid light bulbs.
subject: onclick="this.disabled=true;"
Similar Threads
<a4j:outputPanel> data cached?
Clearing h:inputText value
BeanUtils.populate IndexOutofBound
Prevent multiple submits (e.g. double clicks) in a4j:CommandLink
JSF a4j:Status problem in Firefox