hmm sorry, just tested it, the form is submitted, too if you click the
cancel (or no button)
--
Sebastian Mork
[EMAIL PROTECTED]
--
On Mon, 25 Apr 2005 19:12:27 -0500
"Ken Ferguson" <[EMAIL PROTECTED]> 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:204395
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