EviL KerneL wrote:
> Sorry, I forgot to include the code I was using on my previous message
> by the same subject:
In the future, do not start a new thread, reply to your own. It keeps it
from being broken up into two threads.
> Hi -
>
> I have an onClick event in place that switches an button's label to
> please wait upon clicking. Problem is, the page on which I am
> implementing this event is also running validion to make sure certain
> fields are filled.
>
> The problem I am running into is that when the button label's changes
> to "Please Wait..." and the page does not change because the user
> forgot to fill out one of the fields, the button stays that way and it
> does not go back to its original label ("Next"). Because of this, the
> user is getting confused and does not know what to press since there
> is no Next button anymore.
>
> Is there a way to time this event so that it goes back to its original
> label after say, 3 seconds? I was trying to use onBlur but that would
> only change the button if the user clicks somewhere else on the page
> so it would not serve the purpose.
>
> Here is the code I am using:
>
> <input class="submit-button" type="submit" name="next" value="Next"
> onclick="this.form.PdcButtonPressed.value='next';
> this.value='Please wait...';">
Have your validation function change it back. But why are you using a
submit button if its not to submit a form? type="button" is better.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/