[No need to CC:, BTW.] > And, if the Member successfully hit "take part", as long as the > serverrequest runs, i want to disable the button to prevent multiple > hits, and if the server sends success, i want to change value of > button to "cancel" if he or she accidently hit the button or maybe > realised that he/she dont have time for this anymore.
I might suggest "Undo last action," but that's up to you (since you have committed the last transaction at that point, you aren't cancelling it, you are committing a new action that effectively undoes it). "Cancel" at the UI level I associate with exiting a form without taking _any_ action. Anyway, if you only have one submit button per form, or if you don't mind disabling all of them, then you can indeed attach the events to the form's Submit and later grab the child submits: document.id('myform').getElements('input[type=submit]').each(function(itm,idx){ // disable the itm }) -- using the Moo way to get all the descendent elements -- and disable each one. But if you have more than one submit button per form, and you only want to disable the one the user clicked, then you attach the events to each button's Click, as we have gone over earlier. -- S.