If I read this correctly your after this....

1. User clicks submit on form
2. Dialog box appears with Yes/No option
3. If Yes, then form is actioned
4. If No, then form is cancelled

I would suggest replacing your <INPUT TYPE="SUBMIT"> button with a <INPUT
TYPE="BUTTON" OnClick="AskYesNo()">

Then write a JavaScript function called AskYesNo()....

<SCRIPT LANGAUGE="JavaScript">

        if (window.confirm('Do you wish to continue?'))
        {
                // Action Form as normal
                document.form.submit();
        {
        else
        {
                // Do whatever, eg. Re-locate to previous.htm
                location.href = 'previous.htm';
        }

</SCRIPT>

> -----Original Message-----
> From: W Luke [SMTP:[EMAIL PROTECTED]]
> Sent: 26 October 2000 11:55
> To:   CF-Talk
> Subject:      Yes/No Dialog Boxes
> 
> Sorry all, slightly OT here...
> 
> I'm submitting a form which makes Registry changes, and so would like to
> add
> a dialog box that asks the user to confirm whether he/she wants to update
> and make changes.  So on "Yes," obviously it would update it and on "No,"
> it
> would cancel.
> 
> Anyone done this?
> 
> Thanks
> 
> Will
> 
> --------------------------------------------------------------------------
> ----------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
> a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]


-----------------------------------------------
Any opinions expressed in this message are those of the individual and not necessarily 
the company.  This message and any files transmitted with it are confidential and 
solely for the use of the intended recipient.  If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be advised that 
you have received this message in error and that any use is strictly prohibited.

Sapphire Technologies Ltd
http://www.sapphire.net
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to