aspose file tools*
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
JavaRanch » Java Forums » Java » JSF
Bookmark "onclick="this.disabled=true;"" Watch "onclick="this.disabled=true;"" New topic
Author

onclick="this.disabled=true;"

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(\'' + this.id + '\').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..]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: onclick="this.disabled=true;"