[Proto-Scripty] Re: How to display searched charaacters in autocomplete in Bold

2008-09-10 Thread Jack D
There is no in-built mechanism within Scriptaculous itself which will do hightlight of letters automatically??? Thanks! On Wed, Sep 10, 2008 at 2:00 AM, ColinFine <[EMAIL PROTECTED]> wrote: > > > > On Sep 9, 10:12 pm, Jack <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm using 1.8.4 latest scripta

[Proto-Scripty] Re: How to display searched charaacters in autocomplete in Bold

2008-09-10 Thread ColinFine
On Sep 9, 10:12 pm, Jack <[EMAIL PROTECTED]> wrote: > Hi, >     I'm using 1.8.4 latest scriptaculous library for autocomplete > functionality. Everything works Perfect! > >      I would like to know if scriptaculous supports highligting the > returned results. When I type say "a" in the textbox,

[Proto-Scripty] Re: How to display searched charaacters in autocomplete in Bold

2008-09-10 Thread Rauan Maemirov
Why not to do it on your own? E.g. smth like this? var st = result.toLowerCase().indexOf(keyword.toLowerCase()); if (st != -1) { var output = result.substring(0, st) + '' + result.substring(st, st + keyword.length) + '' + result.substring(st + keyword.length);