Professional Web Applications Themes

Confirm before delete - Macromedia Exchange Dreamweaver Extensions

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?...

  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. #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" <webforumsusermacromedia.com> wrote in message
    news:dkqj05$jei$1forums.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

Similar Threads

  1. Confirm Delete in DataGrid
    By in forum ASP.NET Data Grid Control
    Replies: 19
    Last Post: September 14th, 09:06 AM
  2. flash form and confirm delete
    By Ian O'Betz in forum Macromedia ColdFusion
    Replies: 7
    Last Post: March 1st, 05:05 PM
  3. Add Confirm to Delete button in repeater
    By Roger Twomey in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: June 5th, 12:28 AM
  4. confirm before delete ?
    By mark in forum ASP.NET Data Grid Control
    Replies: 2
    Last Post: May 20th, 02:15 PM
  5. confirm delete prompt
    By Oliver Jobson in forum Windows XP/2000/ME
    Replies: 1
    Last Post: July 6th, 09:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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