Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets 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
JSF a4j:Status problem in Firefox
BeanUtils.populate IndexOutofBound
Clearing h:inputText value
<a4j:outputPanel> data cached?
Prevent multiple submits (e.g. double clicks) in a4j:CommandLink