2 Replies Latest reply on Feb 1, 2009 12:04 AM by Newsgroup_User

    Binds without click (cfinput Button)

      I have a page that has three input fields. 2 cfinput text and 1 cftextarea besides some hidden fields. I have this bound to a cfinput button. I type in the first cfinput text and then click or tab to the second and it is as if I clicked the cfinput button. See Code below. I am at a loss. I have taken all the guts out of the cfc since it really does not matter.

      Please any help would be much appreciated.

      ********** cfform *******************
      <cfform method="post" name="postnotes">
      <cfinput type="hidden" name="trade" id="trade" value="4">
      <cfinput type="hidden" name="ida" id="trade" value="2548">
      <cfinput type="hidden" name="project" id="project" value="3">
      <cfinput type="text" name="newemail" id="newemail" size="60"><br />
      <cfinput type="text" name="newtxt" id="newtxt" size="60"><br />
      <cftextarea name="notes" style="height:75px;width:400px;" enabled="no" value="TEST" visable="no" /><br />

      <cfinput type="button" bind="cfc:lookups.savenotes({savebutton@click},{ida},{notes},{newemail},{newtxt})" name="savebutton" value="Save Now">

      ******************** cfc function *********************

      <cffunction name="savenotes" access="remote">

      <cfargument name="savebutton" required="yes">
      <cfargument name="ida" required="yes">
      <cfargument name="notes" required="yes">
      <cfargument name="newemail" required="yes">
      <cfargument name="newtxt" required="yes">

      <cfset findpm = "Done">
      <cfreturn findpm>