howdoi:access form elements by type

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default howdoi:access form elements by type

    Hello
    Is it possible to access form elements particularly, radio buttons, radio
    button groups, checkboxes, and others, exclusively by the input type in a loop?
    I know I can access the individual form elements as part of the form array of
    elements,, but the input type is an explicit text field that I dont know how to
    loop over. I only want this for the elements in a form, which will be in a
    table with a standard input/cancel button. tia

    cpanon Guest

  2. Similar Questions and Discussions

    1. Access data type mismatch for empty form field
      Hello Everyone; I'm using an MS Access DB on a CFMX (CF 6) site...and updating records in a db from a form ..the CFM for code looks like : ...
    2. generating form elements on the fly
      I'm evaluating flex right now for use in converting an app to a RIA. We have a template system where html forms are built on the fly from the...
    3. Add form elements into DB
      Hi, I'm a complete newbie to Coldfusion!! Anyway I have a query, what I have is a form and what I have done is created a loop so that the...
    4. undefined form elements
      Hello, We are using the Coldfusion MX 6.1 and the clients that are accessing the application are using the Windows XP. I am facing problem in the...
    5. Can't access scanned photos in Elements
      I have just bought an iMac OS X 10.2 and am really flummoxed about how to access the photos I scanned with my Epson Perfection 1650 in PS E1. Is it...
  3. #2

    Default Re: howdoi:access form elements by type

    I don't think this is included with the POST data. A possible workaround is
    to include a hidden field for each normal feild you have, and include a
    name/type pair in it's value.



    cpanon wrote:
    > Hello
    > Is it possible to access form elements particularly, radio buttons,
    > radio button groups, checkboxes, and others, exclusively by the input
    > type in a loop? I know I can access the individual form elements as
    > part of the form array of elements,, but the input type is an
    > explicit text field that I dont know how to loop over. I only want
    > this for the elements in a form, which will be in a table with a
    > standard input/cancel button. tia

    rob::db Guest

  4. #3

    Default Re: howdoi:access form elements by type

    Hi Rob
    I think I found it con the client side getElementsByTag, very neat. However I
    now have a further problem. I am trying to script the label tag. I can create
    an array of the label tags on the form, get its length which is correct, but I
    cant get any of the attributes out. My code looks like this:

    function getTag() {
    var tags = document.getElementsByTagName("label");
    document.getElementById("output").value = tags[0].id.value;
    }
    I REALLY want to get at the label text or the for attribute. However
    everything comes up with undefined. Which of course it isnt. There is label
    text, as CData between the start and end tag and there is a defined unique Id=.
    Can anyone help? tia.

    cpanon 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