Confirm before delete

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Confirm before delete

    I have a delete function that is accessed through the <%MM_editAction %>.

    Trying to warn them before they delete and used a dialog box so they can
    cancel out like this:

    <FORM NAME="demo2">
    <INPUT TYPE="button" NAME="confirmDemo"
    VALUE="Demo of confirm dialog box"
    onClick='confirm("Can you think of a use for this?")'>
    </FORM>


    The problem is that if I push cancel it still deletes the files.

    Any help?

    Pixel Pusher Guest

  2. Similar Questions and Discussions

    1. Confirm Delete in DataGrid
      Hi Refering to the following thread, How can we check what the user has chosen? and where should we do this checking, please?! TIA "Amelyan"...
    2. flash form and confirm delete
      I know alert() function is available to cfforms. I also understand confirm() did not ship in this release. I have a delete button on a form and I...
    3. Add Confirm to Delete button in repeater
      I have a repeater which shows Group names. (Skip this part if you want rather irrelevant) The groups are ordered and formatted: Parent ---Child...
    4. confirm before delete ?
      how would i add a yes/no box for a delete button ? e.g. this is my code - If e.CommandSource.commandname = "Delete" Then mainid =...
    5. confirm delete prompt
      where is the option to disable the prompt which occurs to confirm that you want to delete a file? I know its possible but i forget how i did it...
  3. #2

    Default Re: Confirm before delete

    You have to make the button on page 1 a button that goes to the second page
    with an "are you sure" .. if they are sure, they would press the button, and
    that takes them to the next page with the delete record behavior on that
    page.


    --
    Nancy Gill
    Team Macromedia Member: Dreamweaver MX/UltraDev
    [url]http://www.macromedia.com/go/team/[/url]
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

    "Pixel Pusher" <webforumsuser@macromedia.com> wrote in message
    news:dkqj05$jei$1@forums.macromedia.com...
    > I have a delete function that is accessed through the <%MM_editAction %>.
    >
    > Trying to warn them before they delete and used a dialog box so they can
    > cancel out like this:
    >
    > <FORM NAME="demo2">
    > <INPUT TYPE="button" NAME="confirmDemo"
    > VALUE="Demo of confirm dialog box"
    > onClick='confirm("Can you think of a use for this?")'>
    > </FORM>
    >
    >
    > The problem is that if I push cancel it still deletes the files.
    >
    > Any help?
    >

    Nancy Gill Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139