Professional Web Applications Themes

warning message (alert) - Coldfusion - Getting Started

Hi, I want to create the alert message ' You are about to over writte the acct, do you wish to continue?'). I need two buttons here, YES/ NO. If user click YES, then report will be generate, if user click NO, I want the dialog box open for them to able to select the file and save it. s there away to do it?, if so please give me some advise or example Thanks...

  1. #1

    Default warning message (alert)

    Hi, I want to create the alert message ' You are about to over writte the
    acct, do you wish to continue?'). I need two buttons here, YES/ NO. If user
    click YES, then report will be generate, if user click NO, I want the dialog
    box open for them to able to select the file and save it. s there away to do
    it?, if so please give me some advise or example Thanks

    kt03 Guest

  2. #2

    Default Re: warning message (alert)

    This is a JavaScript question, not ColdFusion, but here is the answer.
    JavaScript alert() function only allows an OK button. You will want to use a
    JavaScript confirm() function. var msg = 'Blah blah blah... click Yes to
    continue or NO to return'; if (confirm(msg)) {
    self.location.href='yeslocation.cfm'; } else {
    self.location.href='nolocation.cfm'; } Hope that helps!

    sdwebguy99 Guest

  3. #3

    Default Re: warning message (alert)

    Thanks, I already figured out!!!
    kt03 Guest

Similar Threads

  1. Replies: 7
    Last Post: May 2nd, 02:54 AM
  2. How To Supress Acrobat Error Message And Alert Message
    By ckpang@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 10
    Last Post: January 15th, 11:33 AM
  3. Javascript alert message problem
    By Tony Girgenti in forum ASP.NET Building Controls
    Replies: 19
    Last Post: October 16th, 09:11 PM
  4. Regarding to alert message
    By satishsrs in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: March 2nd, 09:42 PM
  5. alert or message box?
    By monika in forum ASP
    Replies: 2
    Last Post: September 25th, 08:48 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