If you specify an onClick you also then need to submit the form usin
javascript so your onCLick will become

onClick="this.disabled=true; document.form1.submit();"

where form1 is the name of your form.






                                                                           
             "Velarde, Domonic                                             
             R. - WMD"                                                     
             <Domonic.Velarde@                                          To 
             ci.denver.co.us>          "Tapestry users"                    
                                       <[email protected]>  
             09/09/2005 00:39                                           cc 
                                                                           
                                                                   Subject 
             Please respond to         disable the submit button           
             "Tapestry users"                                              
             <[EMAIL PROTECTED]                                             
             karta.apache.org>                                             
                                                                           
                                                                           
                                                                           




Sorry for posting this twice, but a lot of activity here yesterday.
Hoping someone will see this the second time around.



I need to disable the submit button after a user presses it.  I have
found some examples how to do this.  Some more complicated than others.



I am opting to go for the simpler solution and use JavaScript to disable
the submit button after the user presses it.  Can any one show what the
JavaScript looks like?  I found many reference to how but when
attempting it does not work. The page hangs. Here is sample code of what
I have been trying:



 <input type="submit" jwcid="@Submit" value="message:button-proceed"
listener="ognl:listeners.submit" onClick="this.disabled=true;"/>



It will grey out the button, which is what I want, but then it hangs
does and does not go to the next page.



Any help much appreciated.











---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to