This isn't supported right now. You can pop up the confirm dialog, but
as you noticed you can't do anything with the ok or cancel buttons. The
reason is that you can't write a function to register as the event
handler for these buttons. 

We as working on a way to do confirm dialogs, but for right now it is
not possible, sorry. 

---nimer

-----Original Message-----
From: Ray Champagne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 11:45 AM
To: CF-Talk
Subject: Re: Flash Form as function like js confirm

Sorry, Ken, I was up late last night in a coding haze and didn't read 
the whole thread before I responded.  Thought we were talking straight 
JS here.

Hope you find your answer!  I have no idea about AS....

Ray

Ken Ferguson wrote:
> I don't think confirm exists in AS. I tried your suggestion and it
didn't work. I also tried:
> 
> return alert('are you sure?', 'confirm your submission', 3);
> 
> That just flashes the alert box with yes/no buttons as it submits the
form though. There's got to be a way to do this.
> 
>  
> 
> --Ferg
> 
>       -----Original Message----- 
>       From: Ray Champagne [mailto:[EMAIL PROTECTED] 
>       Sent: Mon 4/25/2005 7:18 PM 
>       To: CF-Talk 
>       Cc: 
>       Subject: Re: Flash Form as function like js confirm
> 
>       use confirm() instead - like
>       
>       onSubmit = "return confirm('are you sure?');"
>       
>       I think that's the syntax - I am not at my desk to look it up
right now.....
>       
>       Ken Ferguson wrote:
>       > I've got my flash form working all nicely, but now I'm wanting
a submit
>       > button which will pop up a js confim-like alert box. I can't
seem to get
>       > it all worked out right.
>       >
>       > <cfform format="Flash" onSubmit="alert('are you sure'); return
false;"
>       > height="175">
>       >    <cfinput type="text" name="txt1">
>       >    <cfinput type="text" name="txt2">
>       >    <cfinput type="Submit" name="submit" value="send it!">
>       > </cfform>
>       >
>       > Using this sort of thing, I can make sure my alert has both
buttons
>       > available and the form never submits, but I've no way to
actually let
>       > the user choose yes or no and have that determine whether I
return true
>       > or false. I've tried removing the "return false" bit, but then
it just
>       > flashes the alert box as it submits.
>       >
>       >
>       > Any ideas would be helpful!
>       > --Ferg
>       >
>       >
>       >
>       >
>       
>       
> 
> 



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