1 Reply Latest reply on Jul 18, 2008 5:22 AM by acdhirr

    Refresh bind after some condition is met

    acdhirr
      Hi people,

      I have a cfselect that's bound to an input. Typing some characters in the input triggers the select to update it's content (which it gets as a JSON string).

      Works fine. But I want more! I want the event to occur only after 3 or more characters are entered in the input. I could use {filter@none} in the bind, but then I must somehow refresh the bind programmatically.

      I did some quite exhaustive googling, without any satisfying result. Maybe it's just too dumb a question or a very outlandish wish...

      Any ideas?

      <input type="text" name="filter" id="filter">

      <cfselect name="seladdress" id="seladdress"
      bind="url:index.cfm?event=adresses.list&surname={filter@keyup}"
      display="SURNAME"
      value="ID"
      bindOnLoad="false"
      >