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
> >
> >
> >
> >
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204462
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