Here:
<script language="JavaScript">
<!--
function submitForm() {
document.haselect.xxx.value = "Please Wait...";
document.haselect.xxx.disabled = "disabled";
return true;
}
//-->
</script>
<FORM name="haselect" action="index.cfm" method="post"
onsubmit="submitForm();">
<INPUT name="xxx" type=submit value="NEXT >>">
Works a treat.
> -----Original Message-----
> From: Robin Griffiths [mailto:[EMAIL PROTECTED]
> Sent: 21 October 2003 17:15
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] OT : Please wait button
>
>
> Yep, a real s*d to debug, hence the post.
>
> Oh, and it's Robin
> ..been called worse, though ;-)
> ----- Original Message -----
> From: Kola Oyedeji
> To: [EMAIL PROTECTED]
> Sent: Tuesday, October 21, 2003 5:01 PM
> Subject: RE: [ cf-dev ] OT : Please wait button
>
>
> Yes, good point Robert
>
> I have seen this when debugging someone else's code (not mine of course
> ;-)) was even worse as it was launching a process in the background
> which was intensive and it took a while to figure out why it was being
> kicked off twice!
>
> Kola
>
> >> -----Original Message-----
> >> From: Robin Griffiths [mailto:[EMAIL PROTECTED]
> >> Sent: 21 October 2003 15:59
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: [ cf-dev ] OT : Please wait button
> >>
> >> One thing I have had trouble with in the past - and is hopefully
> worth a
> >> mention - is this scenario:
> >>
> >> <input type="submit" value="OK" onclick="document.theform.submit();">
> >>
> >> The form can actually submit twice - once due to the normal action of
> the
> >> submit button, and once from the JavaScript. AFAIK this only affects
> >> type="submit", not type="button".
> >>
> >> That's why I tend to do this...
> >>
> >> <input type="submit" value="OK" onclick="return
> >> validationFunction(document.theform);">
> >>
> >> which blocks the submission if validation fails. Note -
> >> validationFunction() must return true when passed or false when
> failed.
> >> ----- Original Message -----
> >> From: [EMAIL PROTECTED]
> >> To: [EMAIL PROTECTED]
> >> Sent: Tuesday, October 21, 2003 3:44 PM
> >> Subject: RE: [ cf-dev ] OT : Please wait button
> >>
> >>
> >>
> >> yes, but the point is, if you don't have javascript enabled, the
> form
> >> would
> >> still submit, just you miss out on the technicolor delights of a
> >> dynamic
> >> button label. otherwise requiring javascript to submit a form
> falls
> >> into
> >> the same category as having <a href="javascript:popupWindow()> - it
> >> won't
> >> work if you don't have JS enabled.
> >>
> >>
> >> Duncan Cumming
> >> IT Manager
> >>
> >> http://www.alienationdesign.co.uk
> >> mailto:[EMAIL PROTECTED]
> >> Tel: 0141 575 9700
> >> Fax: 0141 575 9600
> >>
> >> Creative solutions in a technical world
> >>
> >>
> ----------------------------------------------------------------------
> >> Get your domain names online from:
> >> http://www.alienationdomains.co.uk
> >> Reseller options available!
> >>
> ----------------------------------------------------------------------
> >>
> ----------------------------------------------------------------------
> >>
> >>
> >>
> >> Rich Wild
> >> <[EMAIL PROTECTED] To:
> >> "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >> go.com> cc:
> >> Subject: RE: [ cf-dev
> ] OT
> >> : Please wait button
> >> 21/10/2003
> >> 15:30
> >> Please
> >> respond to
> >> dev
> >>
> >>
> >>
> >>
> >>
> >> > their browser. So I'll just use the onClick to change the
> >> > value, but not disable the button. Hopefully changing the
> >> > button should deter most idiots from quadruple-clicking the
> submit.
> >>
> >> that *is* Javascript that's changing the value of the button.
> >>
> >>
> >> --
> >> ** Archive:
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >>
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> For human help, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> ** Archive:
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >>
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> For human help, e-mail: [EMAIL PROTECTED]
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]