Re: Disable Image Button in IE

2008-04-15 Thread morgan l
Should be as simple as an onclick=this.disabled = true :

input type=image src=/images/buttons/button_save.gif
onclick=this.disabled=true /

Works for me in IE7 in my quick test.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303425
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Disable Image Button in IE

2008-04-15 Thread lists
What happens after the page submits and you hit the browser's back button,
is your image still disabled or can u click on it again? 

-Original Message-
From: morgan l [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 8:04 AM
To: CF-Talk
Subject: Re: Disable Image Button in IE

Should be as simple as an onclick=this.disabled = true :

input type=image src=/images/buttons/button_save.gif
onclick=this.disabled=true /

Works for me in IE7 in my quick test.




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303479
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Disable Image Button in IE

2008-04-15 Thread Cutter (CFRelated)
If you have need to hit your back button, after the form is submitted, 
then you may want to rethink your application design.

I think the more important questions might be, what if the user chose 
the wrong image? What happens if your form fails client side validation? 
What do you do if the chosen image fails server side validation?

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

lists wrote:
 What happens after the page submits and you hit the browser's back button,
 is your image still disabled or can u click on it again? 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303518
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Disable Image Button in IE

2008-04-14 Thread Cutter (CFRelated)
You're searching for the wrong thing. You don't want to disable the 
'browse' button of an input type='image', you want to disable the submit 
button of your form.

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Dave Hatz wrote:
 Can anyone please point me in the right direction on how to disable the Image 
 Input button in IE?  I have it working great in FF.  I have tried several 
 different approaches in IE, but nothing seems to be working.  I am using an 
 Input Type=image and want to disable it after the user clicks on it so they 
 don't resubmit the page again.
 
 Can someone please point me in the right direction to look for a solution?
 
 Thanks,
 Dave Hatz 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303375
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Disable Image Button in IE

2008-04-14 Thread Nicholas M Tunney
button id=myButton 
onclick=document.getElementById('myButton').disabled = true/button

HTH,

-- 
Nicholas M. Tunney
Blog: http://www.nictunney.com

Adobe Certified Advanced ColdFusion MX7 Developer
Adobe Certified Instructor
Adobe Community Expert


Dave Hatz wrote:
 Can anyone please point me in the right direction on how to disable the Image 
 Input button in IE?  I have it working great in FF.  I have tried several 
 different approaches in IE, but nothing seems to be working.  I am using an 
 Input Type=image and want to disable it after the user clicks on it so they 
 don't resubmit the page again.

 Can someone please point me in the right direction to look for a solution?

 Thanks,
 Dave Hatz 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303376
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4