Professional Web Applications Themes

newbie: change values via button - Coldfusion Flash Integration

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

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

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

  3. #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

Similar Threads

  1. NEWBIE: Getting XML Values
    By PayLoadz_Shannon in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: November 4th, 04:32 AM
  2. Colour Values change
    By Tim_Malone@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 10
    Last Post: August 3rd, 08:33 AM
  3. Image change according to slider values?
    By cfinn in forum Macromedia Director Basics
    Replies: 1
    Last Post: April 24th, 08:05 PM
  4. Replies: 1
    Last Post: November 16th, 07:21 PM
  5. Change database values
    By TresWBL in forum PHP Development
    Replies: 2
    Last Post: October 30th, 02:17 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