I think this will work for you. It allows you to use an alert as a confirm in flash forms.
http://www.asfusion.com/blog/entry/alert-box-for-cfform --Ferg Kiley Simpson wrote: >"confirm" doesn't work with cfforms I'm afraid. > >I have a massive hack to solve this if anyone is interested. It is posting >to another page and doing the check there, I really wanted to remain on the >same page. > > >At 01:11 PM 11/22/2005, you wrote: > > >>Try this: >> >><cfinput >> type="submit" >> name="buttonDelete" >> value="Delete" >> onclick="return confirm('Are you sure?');"> >> >>I'm not sure if this works with flash forms though. >> >> >> >>>-----Original Message----- >>>From: Kiley Simpson [mailto:[EMAIL PROTECTED] >>>Sent: Tuesday, November 22, 2005 11:57 AM >>>To: CF-Talk >>>Subject: Re: form posting question >>> >>>nope. >>> >>>but i ultimately need to have 2 buttons, one a Save the other >>>Delete. I >>>want the Delete to pop a warning to the user. The onClick of >>>the Delete has >>>a #showAlert# call but if the button is of type Submit, the >>>form posts >>>regardless if the user responds to the alert. >>> >>>I am hacking my through a very simple feature: alert the user >>>if the delete >>>is clicked. It's a cfform with format="flash". >>> >>>Any ideas? >>> >>> >>>At 11:08 AM 11/22/2005, you wrote: >>> >>> >>>>Why are you checking the value for the buttonDelete form >>>> >>>> >>>element in the >>> >>> >>>>first place??? Surely you're not using more than one button with that >>>>same name are you? >>>> >>>> >>----------- >> >>This transmission may contain information that is privileged, confidential >>and/or exempt from disclosure under applicable law. If you are not the >>intended recipient, you are hereby notified that any disclosure, copying, >>distribution, or use of the information contained herein (including any >>reliance thereon) is STRICTLY PROHIBITED. If you received this >>transmission in error, please immediately contact the sender and destroy >>the material in its entirety, whether in electronic or hard copy format. >>Thank you. A1. >> >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225009 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54