So, I had another brilliant thought which didn't seem to work either. I
used a button instead of a submit and then did this:

<cfinput type="button" name="confirm" value="send it!"
onclick="if(alert('are you sure', 'my alert box', YES|NO) ==
YES){submitForm()}else{};">

Strange this is, when the alert fires it's YES right out of the box, so
the form immediately submits. So then I did this:

<cfinput type="button" name="confirm" value="send it!"
onclick="if(alert('are you sure', 'my alert box', YES|NO) == NO){}else{
submitForm()};">

This one doesn't immediately submit, but neither does it submit after
you click the YES button! Nothing ever changes the value or sends the
value anywhere that I can locate. WHAT????

I really think I'm about out of ideas here. I hope one of you AS gurus
can come up with something here. 

Thanks,
Ferg



-----Original Message-----
From: Ken Ferguson 
Sent: Tuesday, April 26, 2005 7:22 AM
To: CF-Talk
Subject: RE: Flash Form as function like js confirm

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