thats close to what i have been trying but I get this eror whenever i add the 
onclick to the button

 illegal use of actionscript

~Dave the disruptor~
"Some people just don't appreciate how difficult it is to dispense wisdom and 
abuse at the same time." 

----------------------------------------
From: Paul Hastings <[EMAIL PROTECTED]>
Sent: Friday, October 14, 2005 1:11 AM
To: CF-Talk <[email protected]>
Subject: Re: cfform alert box 

> i tried onClick but it doesnt work

not tested but maybe something along these lines? if you're not on 
merrimack, you'll need to wrap the AS up in cfsavecontent.

 function confirm(evt) {
 if (evt.detail == mx.controls.Alert.OK) {
 // do whatever when the event is confirmed like submit or pass thru 
to remoting CFC, etc.
 }
 } // confirm

 function doubleCheck(){
 alert("Are you sure you want to delete this record", "Warning", 
mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirm);
 } // doubleCheck

onclick="doubleCheck();">



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:221107
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