2 Replies Latest reply on Dec 29, 2011 8:58 AM by BKBK

    bind to onChange event?

    ion Level 1

      i have a text field whose value can be changed programatically by a javascript function

      i have a second field, bound to a cfc, passing the value of the first field to the cfc function


      this works, but only onBlur or onKeyup, how can i make it work based on the onChange event of the first field, i.e. when my JavaScript function changes the value in the first field, pass that value to the bound field and get the result? something like onChange=ColdFusion.secondField.refresh



           <cfinput type="text" name="firstField" value="fromJavaScriptFunc">


            <cfinput type="text" name="secondField" bind="cfc:myCFC.myFunc({firstField@blur})" bindOnLoad="true">