Loading ...
Sorry, an error occurred while loading the content.

Autocomplete - highlight matched characters

Expand Messages
  • rolfsf
    I m using autocomplete with a local datasource. I ve got the following settings on it: myAutoComplete.applyLocalFilter = true;
    Message 1 of 2 , Feb 5, 2010
    • 0 Attachment
      I'm using autocomplete with a local datasource. I've got the following settings on it:

      myAutoComplete.applyLocalFilter = true;
      myAutoComplete.queryMatchContains = true;
      myAutoComplete.minQueryLength = 2;

      Is there a simple way to highlight the matched characters (ie. partial match) in the results list as the user types - perhaps as bold text

      if I've entered "hel" I might see: 

      Hello Kitty
      Oh Hell
      Shell
    • Dav Glass
      This example shows how to do that: http://developer.yahoo.com/yui/examples/autocomplete/ac_fn_multfields.html -- Dav Glass davglass@gmail.com blog.davglass.com
      Message 2 of 2 , Feb 5, 2010
      • 0 Attachment
        This example shows how to do that:

        http://developer.yahoo.com/yui/examples/autocomplete/ac_fn_multfields.html

        --
        Dav Glass
        davglass@...
        blog.davglass.com


        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
           without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
          McDonalds Certified Food Specialist is to fine cuisine  +


        On Fri, Feb 5, 2010 at 9:25 AM, rolfsf <rolfsf@...> wrote:
         

        I'm using autocomplete with a local datasource. I've got the following settings on it:

        myAutoComplete.applyLocalFilter = true;
        myAutoComplete.queryMatchContains = true;
        myAutoComplete.minQueryLength = 2;

        Is there a simple way to highlight the matched characters (ie. partial match) in the results list as the user types - perhaps as bold text

        if I've entered "hel" I might see: 


        Hello Kitty
        Oh Hell
        Shell


      Your message has been successfully submitted and would be delivered to recipients shortly.