Hey Guys.
I need to make a script to people dnt press submit twice. So far the only thing i got working is onClick = "this.disabled=true;" and that worked fine.
But i Have a JS form checker (to see if everything is filled in) and i need this code in my function().
So far in my Else {} [the else means everything is ok]
I have
I want to Disable my button also in this process and change it's value to 'Processing'
I've tried this:
The window status line works fine, but the rest doesn't.
Thanks for your help!
I need to make a script to people dnt press submit twice. So far the only thing i got working is onClick = "this.disabled=true;" and that worked fine.
But i Have a JS form checker (to see if everything is filled in) and i need this code in my function().
So far in my Else {} [the else means everything is ok]
I have
| Code: |
|
else{ window.status='Processing Request... Please Wait'; return true; } |
I want to Disable my button also in this process and change it's value to 'Processing'
I've tried this:
| Code: |
|
else{ window.status='Processing Request... Please Wait'; document.form.Button.disabled=true; document.form.Button.value='Processing'; return true; } |
The window status line works fine, but the rest doesn't.
Thanks for your help!
