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

  1. #1

    Default Dynamic Checkbox

    Hi all, I have a set of check boxes that I have blank text fields next to.
    When the user checks the check box the current date should be desplayed in the
    field next to it. I am using a flash forms.

    thanks

    Maurice

    EdmondsM Guest

  2. Similar Questions and Discussions

    1. Reading Dynamic Checkbox values
      I have a resultset which has a Boolean field that I display in a table, however I am having a problem trying to update the data for these...
    2. Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
      I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the...
    3. Dynamic function or javascript to change checkbox tounchecked?
      I am wondering if there is a ColdFusion function or maybe some simple javascript that can help me. I want to dynamically change a checkbox from...
    4. pass dynamic checkbox values to results page?
      ASP VB Access db Help! I'm trying to pass the results of dynamic checkboxes to a results pages. What's the easiest way to get this accomplished?...
    5. Multiple insert - iterate form collection - checkbox name dynamic?
      How does one loop through the contents of a form complicated by dynamic construction of checkboxes which are assigned a 'model' and 'listingID' to...
  3. #2

    Default Re: Dynamic Checkbox

    well although this may not solve your whole question, but part of what you can
    do is a statment
    <cfif isdefined(#form.checkboxname#)>
    <input type="text" value="predefined value for checkbox">
    </cfif>

    I don't know how you can make happen withou refreshing the page though. Maybe
    that helps, maybe not. Good luck.

    kenji776 Guest

  4. #3

    Default Re: Dynamic Checkbox

    Thanks kenji776, how would I go about refreshing the page after I check the check box. I have search high and low, but can find a way to do it without doing a refresh.
    EdmondsM Guest

  5. #4

    Default Re: Dynamic Checkbox

    Well unless I am wrong, clicking submit usually refreshes the page. Or
    something similar to that. Not sure if the submit creates an actual refresh, or
    just an incredable simluation. Either way, a submit button should trigger the
    text boxes getting swapped over.

    kenji776 Guest

  6. #5

    Default Re: Dynamic Checkbox

    Do it with JavaScript.
    Just set a VAR= new date(today) in a function,
    when the onClick attribute gets kicked off by a checkbox, set the value
    attribute of the text field to the VAR previously created.

    Enjoy,
    Paul



    NuroTec Guest

  7. #6

    Default Re: Dynamic Checkbox

    Hi NuroTec, this will probably work, but I am finding that you can not do Javascript within flash pages.
    EdmondsM 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