File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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..]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onclick="this.disabled=true;"
 
Similar Threads
Clearing h:inputText value
<a4j:outputPanel> data cached?
BeanUtils.populate IndexOutofBound
JSF a4j:Status problem in Firefox
Prevent multiple submits (e.g. double clicks) in a4j:CommandLink