Yep, I agree, like it away from inline, looks better for debuggin' too.

Sure you all know this, but can re-use for every form if you use 

onClick="Validate(this.form)"

and 

function Validate(inForm)
...

inForm.submit()


But of course I'm teaching you al to suck eggs...... Can anyone explain that
stupid saying??!!?



-----Original Message-----
From: Matt Horn [mailto:[EMAIL PROTECTED]
Sent: 21 October 2003 15:12
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] OT : Please wait button


No
 I mean  you should have a type = button and onclick="Validate();"

and the last 3 lines of the validatrion function should be
document.myForm.myButton.value='please wait';
document.myForm.myButton.disabled='true';
document.myForm.submit();

that way the form will submit if all validates correctly

Some browsers (I cant remember which but I think IE5.0)
will not submit if the submit button is disabled

this solution takes the submitting away from the built in Submit() method of
the type = submit and lets JS handle it

seems a bit easier to control that way

 *shrug*

I like it

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 21, 2003 4:06 PM
Subject: Re: [ cf-dev ] OT : Please wait button


>
> some browsers... like which ones?
>
> are you meaning have the button as type=button then change it to
> type=submit after the javascript validation?
>
>
> 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!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
>
>
>
>                     "Matt Horn"
>                     <[EMAIL PROTECTED]        To:
<[EMAIL PROTECTED]>
>                     rn.org>              cc:
>                                          Subject:     Re: [ cf-dev ] OT :
Please wait button
>                     21/10/2003
>                     14:49
>                     Please
>                     respond to
>                     dev
>
>
>
>
>
> yeah it should
> but some browsers will disable the button before it submits and then does
> not submit the form
>
> type = Button and submit after a validation script
>
> put that code in the validation function if everything checks out ok
>
>
>
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 21, 2003 3:47 PM
> Subject: RE: [ cf-dev ] OT : Please wait button
>
>
> >
> > actually I like Matt's version more.  it should also work on <input type
> > ="submit"> I think.
> >
> >
> > 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!
> > ----------------------------------------------------------------------
> > ----------------------------------------------------------------------
> >
> >
> >
> >                     "Robertson-Ravo, Neil (RX)"
> >                     <[EMAIL PROTECTED]        To:
> "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >                     dexpo.com>                          cc:
> >                                                         Subject:     RE:
> [ cf-dev ] OT : Please wait button
> >                     21/10/2003 14:31
> >                     Please respond to dev
>
> >
> >
> >
> >
> >
> > yep...thanks guys...either way should work for me.... nice one.
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: 21 October 2003 14:30
> > To: [EMAIL PROTECTED]
> > Subject: Re: [ cf-dev ] OT : Please wait button
> >
> >
> >
> > something like:
> >
> > <input type="button" name="click" onClick="document.click.src
> > ='pleasewait.gif'" href="clickme.gif">
> >
> > ?
> >
> > 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!
> > ----------------------------------------------------------------------
> > ----------------------------------------------------------------------
> >
> >
> >
> >
> >                     "Robertson-Ravo, Neil (RX)"
> >
> >                     <[EMAIL PROTECTED]        To:
> > "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >                     dexpo.com>                          cc:
> >
> >                                                         Subject:     [
> > cf-dev ] OT : Please wait button
> >                     21/10/2003 14:20
> >
> >                     Please respond to dev
> >
> >
> >
> >
> >
> >
> >
> >
> > Whats the best way to do a "Please Wait...." style button on the
> submitting
> > page so the user does not try to click submit again?
> >
> >
> > --
> > ** 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]
> >
>
>
> --
> ** 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]
DISCLAIMER: This e-mail is confidential and may also be legally privileged.
If you are not the intended recipient, use of the information contained in
this e-mail (including disclosure, copying or distribution) is prohibited
and may be unlawful.  Please inform the sender and delete the message
immediately from your system.  This e-mail is attributed to the sender and
may not necessarily reflect the views of the Patsystems Group and no member
of the Patsystems Group accepts any liability for any action taken in
reliance on the contents of this e-mail (other than where it has a legal or
regulatory obligation to do so) or for the consequences of any computer
viruses which may have been transmitted by this e-mail. The Patsystems Group
comprises Patsystems plc and its subsidiary group of companies.

-- 
** 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]

Reply via email to