alert() = illegal in Flash Forms???

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default alert() = illegal in Flash Forms???

    I'm having some problem with a "Are you sure???" popup in flash forms.
    I want to delete a row from the cfgrid if clicked of and if clicked cancel do
    nothing.
    This is my button onclick event:

    onclick="alert(?Are you sure you want to delete this wonderfull pizza??,
    ?Delete this pizza! Sure??, mx.controls.Alert.OK | mx.controls.Alert.CANCEL,
    mx); ok = DataGrid.deleteRow(pizzaList); cancel = false;"

    Can anybody give me some help why I get the message: Illegal usage of
    actionscript??? :confused; I'm really checked all the doc's but there is not a
    good relevant example for this.

    Thanks in advance!!!:D

    cf_dutch Guest

  2. Similar Questions and Discussions

    1. Shockwave Flash plugin illegal operation??
      I don't know wth is happening but everytime im using netscape or firefox. Some message box pops up saying "The plugin performed an illegal...
    2. Flash cfform error - INVALID_CHARACTER_ERR: An invalidor illegal XML character is specified. null
      I have a simple cfform using Flash that keeps giving the following error: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified....
    3. IMPORTANT ALERT for Media Flash users
      I watched recently on G4 Tech channel, a program called "Call For Help". One particular segment on the program alerted me to use of "illegal"...
    4. Flash Form Alert
      Hi, I finally got the alert working in flash forms. Now my question is, how to do different actions with different buttons. Example: <cfinput...
    5. Jjavascript-type Alert Box in Flash?
      Is there a simple alert box available in Flash? I am actually after a "confirm" style box. Thanks, cp
  3. #2

    Default Re: alert() = illegal in Flash Forms???

    I can tell you the why but I haven't found the fix. The documentation does say
    you have to use actionscript if you are using the flash form. You are trying
    to use a javascript function. I've got a similar problem trying to clear a
    form field when a button is clicked. I can do it when programming flash but
    can't seem to apply it when using a flash form in CFMX7. Hopefully someone
    will come up with a how. :)

    jimfree Guest

  4. #3

    Default Re: alert() = illegal in Flash Forms???

    Alert is available but undocumented. It seems to be similar in functionality
    to the alert in Flex, but without documentation its exact method signature is
    undetermined:

    <cfinput type="button" value="Next" label="Next" name="nextTabBtn"
    onclick='
    _root._myAlert = alert("You are a giant bozo.", "Bozoliscious", OK |
    CANCEL);'/>

    However, there appears to be no way to register an event listener.

    phoehne Guest

  5. #4

    Default Re: alert() = illegal in Flash Forms???

    No it's actionscript, I just used this code from the Flex docs!
    But the solution for your problem should be like this:

    <cfinput type="button" name="clearBT" onclick="resetForm()" />

    Hope this helps you a bit?? Hopefully someone can help me with my problem???

    cf_dutch Guest

  6. #5

    Default Re: alert() = illegal in Flash Forms???

    Thanks phoehne!

    There is a lot not documented such as the ID attribute wih cfformgroup and
    etc..
    But anyway, hopefully the docs team can create a CFMX 7 specific actionscript
    chapter, because it cost a lot of trial and error time to get wat you want on
    this moment.

    Anyone from MM about this? maybe Mike Nimer ... got some more info about what
    AS functions you can use with for instance DataGrid and etc???

    cf_dutch Guest

  7. #6

    Default Re: alert() = illegal in Flash Forms???

    What's causing the illegal use of actionscript error in the delete words in
    your message. try

    Are you sure you want to remove this wonderfull pizza
    Remove this pizza

    there still isn't a way to add a listener to capture the OK,CANCEL events
    though. This is high on the enhancement request list though.

    ---nimer

    "cf_dutch" <mvanleest@wantonline.com> wrote in message
    news:cvisp7$p5b$1@forums.macromedia.com...
    > I'm having some problem with a "Are you sure???" popup in flash forms.
    > I want to delete a row from the cfgrid if clicked of and if clicked cancel
    > do
    > nothing.
    > This is my button onclick event:
    >
    > onclick="alert(?Are you sure you want to delete this wonderfull pizza??,
    > ?Delete this pizza! Sure??, mx.controls.Alert.OK |
    > mx.controls.Alert.CANCEL,
    > mx); ok = DataGrid.deleteRow(pizzaList); cancel = false;"
    >
    > Can anybody give me some help why I get the message: Illegal usage of
    > actionscript??? :confused; I'm really checked all the doc's but there is
    > not a
    > good relevant example for this.
    >
    > Thanks in advance!!!:D
    >

    Mike Nimer 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