Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default onChange action

    What I have is a form. When the user clicks on a name I want to go to another page which I can then display userinfo. I basically want to do what a submit button do with out having to use one.
    _aggregate Guest

  2. Similar Questions and Discussions

    1. onChange not supported
      The onChange event is not supported for text inputs in property inspectors. Is this correct? Why?
    2. <cfgrid onchange
      Hi, Is it possible to set a cfinput using the cfgrind onchange - not using bind {}. I assume using the onchange event will work, but I don't know...
    3. Onchange
      Hi, I have form with 2 text boxes and couple radio button. I want a second text box should automatically display data bases on what is entered in...
    4. onChange event handler
      I want to check if any form objects have been changed and if so, popup an alert box. I have a simple Javascript function that displays the alert...
    5. cfselect onChange problem
      I am in the process off convertir all my form to cfform and here is my problem : <cfselect name="abc" onChange="document.form1.action='abc.cfm';...
  3. #2

    Default Re: onChange action

    Umm, how can you enter the name, if onClick already submits the page? Oh well,
    maybe you're using some iframe technique. Anyway, sounds strange.

    You can always assign form an id, and submit it using Javascript.

    <form id="myForm" method="post" action="myactionpage.cfm">
    Name: <input type="text" name="username"
    onClick="document.getElementById('myForm').submit( );">
    <br>
    <input type="submit" value="Proceed">
    </form>

    Usability-wise, this doesn't make any sense, but that's what you asked for...
    Use <form target="frameName"... if you want to submit the form into another
    window/frame.

    Fernis Guest

  4. #3

    Default Re: onChange action

    What I'm trying to do is I have a form that has user information, however I
    dont know until the user tells me who. My idea behind this would have a form
    with all the fields read only except for the user name. When they enter in the
    username then I could querry the database and return the users info. Is there
    a better way doing this?

    _aggregate Guest

  5. #4

    Default Re: onChange action

    Sounds like you might be describing a drop down list and selecting("clicking")
    on one of the items. If so you want the OnChange event:
    <SELECT CLASS=DataEntryTextNormal NAME="Initials"
    onChange="this.form.submit(); return true;">

    which also works for radios and checks. It will also work for text fields,
    however, for them, the browser won't know they've changed until you refocus
    (tab, mouse-click, etc.) to another field.

    JMGibson3 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