newbie: change values via button

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default newbie: change values via button

    Dear,

    Currently, I'm trying some features of ColdFusion, (8.0.1). I'm a newbee in
    cfform (flash). Please have a look into my code. The text '123' should change
    in '456' by onclick. But, it doesn't.

    Please help me to to fix this or more documentation.

    Thanks a lot,

    Wilco

    <cfform name="test" height="500" width="220" format="flash">
    <cfformitem name="changethis" type="text">123</cfformitem>
    <cfinput name="knop" type="button" value="druk"
    onclick="{test.changethis='456';}" />
    </cfform>

    wilco_nl Guest

  2. Similar Questions and Discussions

    1. NEWBIE: Getting XML Values
      Ok, please be patient. I just downloaded the app today and am having a blast with it. Very cool stuff. So I need to read XML in from files, had a...
    2. Colour Values change
      Does anyone know why the colour values would change when rasterising an Acrobat PDF in Photoshop. A red colour is changing from 100y and 100m to 100y...
    3. Image change according to slider values?
      I'm trying to create a simple interface where a tempersture is vaired, and a picture changes according to this. Ideally, what i'd like is to be able...
    4. HELP:Swapping spirtes for a button & Randomly activating a button [ newbie ]
      Hi - I have two questions - hope the cross posting is acceptable. 1. I have made some buttons using the mouseenter and leave behaviours that...
    5. Change database values
      I have a script that outputs all the values on a certain row in a MySQL table. I would to be able to change those values. I don't need any login...
  3. #2

    Default Re: newbie: change values via button

    Your approach has a problem: cfformitem does not have an ttribute called
    name. You could bind the inner text as follows:





    <cfform name="test" height="500" width="220" format="flash">
    <cfformitem type="script">
    function changeInnerText() {
    test.text=true;
    }
    </cfformitem>
    <cfformitem type="text" bind="{test.text?'456':'123'}"></cfformitem>
    <cfinput name="knop" type="button" value="druk"
    onclick="changeInnerText()"/>
    </cfform>

    BKBK Guest

  4. #3

    Default Re: newbie: change values via button

    BKBK,

    Thanks for your help. I'm happy that I've started the topic name with 'newbie' ;).

    Wilco_nl
    wilco_nl 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