Professional Web Applications Themes

Confirm CFForm - Coldfusion Flash Integration

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 use Javascript to ask the user to confirm their delete action. Has anyone else had this need and come up with a solution? -- Thanks Ian O'Betz [url]www.premier-ed.com[/url]...

  1. #1

    Default Confirm CFForm

    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 use
    Javascript to ask the user to confirm their delete action. Has anyone else
    had this need and come up with a solution?

    --
    Thanks
    Ian O'Betz
    [url]www.premier-ed.com[/url]


    Ian O'Betz Guest

  2. #2

    Default Re: Confirm CFForm

    alert() seems to work, and you can pass in additional parameters

    <cfinput type="button" value="Next" label="Next" name="nextTabBtn"
    onclick='
    _root._myAlert = alert("Hello.", "Say Hi", OK | CANCEL);'/>

    However, how we can register an event listener to determine if "Ok" or
    "Cancel" was clicked - I have no idea.

    :|

    phoehne Guest

  3. #3

    Default Re: Confirm CFForm

    A confirmation, or in the meantime, an alert modified to work as a confirmation
    is such a basic need for flash forms. I can't imagine Macromedia shipping MX7
    without this???. I've tried everything short of backing out of using
    flashforms -- which is what I'll probably do unless someone can figure out how
    to add a listener for the alert YES|NO . Anyone out there have a solution?

    doncyberwolf Guest

  4. #4

    Default Re: Confirm CFForm

    I have yet to come up with a solution for this. I'm still working on it.
    Here is the closest code I've come up with:

    <cfinput type="button" name="test" value="Confirm" onclick="if
    (alert('Confirm please...','WARNING',YES|NO) == NO) {testview.text =
    'submit'}" />
    <cfinput name="testview">

    This is what I've used to test.

    --
    Ian O'Betz
    Clear Results
    [url]www.clearresults.net[/url]


    "doncyberwolf" <webforumsusermacromedia.com> wrote in message
    news:cvq85l$egd$1forums.macromedia.com...
    > A confirmation, or in the meantime, an alert modified to work as a
    confirmation
    > is such a basic need for flash forms. I can't imagine Macromedia shipping
    MX7
    > without this???. I've tried everything short of backing out of using
    > flashforms -- which is what I'll probably do unless someone can figure out
    how
    > to add a listener for the alert YES|NO . Anyone out there have a
    solution?
    >

    Ian O'Betz Guest

  5. #5

    Default RE: Confirm CFForm

    Did you ever get this working??? Was this if statement working for you?

    That never sets the value to 'submit' for me. Even when I click YES, it still isn't set to 'submit'.

    Thanks,
    Ferg

    From [url]http://www.developmentnow.com/g/66_2005_2_0_0_295668/Confirm-CFForm.htm[/url]

    Posted via DevelopmentNow.com Groups
    [url]http://www.developmentnow.com[/url]
    Ferg Guest

  6. #6

    Default Re: Confirm CFForm

    Check this post for an example of an alert with confirmation:

    [url]http://www.asfusion.com/blog/entry/alert_box_for_cfform[/url]

    Laura
    JadeBlue Guest

Similar Threads

  1. Confirm before delete
    By Pixel Pusher in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 1
    Last Post: November 10th, 05:47 AM
  2. Is confirm() too much to ask?
    By Iceborer in forum Macromedia ColdFusion
    Replies: 1
    Last Post: March 1st, 12:14 PM
  3. confirm before delete ?
    By mark in forum ASP.NET Data Grid Control
    Replies: 2
    Last Post: May 20th, 02:15 PM
  4. Confirm a bug.....
    By Bryan Martin in forum ASP.NET Security
    Replies: 0
    Last Post: November 23rd, 03:08 PM
  5. Can someone confirm this for me.........
    By Jason da Cunha in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 1
    Last Post: July 18th, 01:44 AM

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