you could add its onclick event via JS too with something like
element.setAttributes(onclick, "this.disabled='true'")

not tested, but just look up javascripts setAttributes() function
 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Tony [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 08, 2005 3:28 PM
To: CF-Talk
Subject: Re: Disable Submit Button CFform CF5??

why not just do this...

<input type="submit" ... onClick="this.disabled='true',this.form.submit();">

doesnt that work?
tw


On 12/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I've tried about 5 different methods to disable a submit button in a
> cfform, all methods seem to work with a regular html form but for whatever
> reason they fail when I try to apply them to a cfform.
>
> Does anyone know of a way to disable a CFform submit button OnClick or
> OnSubmit in cf5?
>
> Thanks in advance.
> -Paul
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226605
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to