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
        >
        >
        >
        >
        
        

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