Hi Justin,
    Thanks for your reply. Can you give me exact code & where to add for
mouse event?
    Regarding 2nd solution, do I just need to replace line 316 with the
below line?

    return this.element.value.substring(bounds[0], bounds[1]);

   Will there be any impact on any other part of the autocompleter? I mean
what would be the side efftect of the above 2 soluns?

On Fri, Sep 12, 2008 at 10:15 AM, Justin Perkins <[EMAIL PROTECTED]>wrote:

> On Fri, Sep 12, 2008 at 11:57 AM, Jack <[EMAIL PROTECTED]> wrote:
> >   Question 1:
> >   I've observed that when copy paste the search string using keyboard
> > in the text box, it displays hints. However, if I copy paste the same
> > stuff using mouse, then the hints are not displayed at all. I think
> > the even is placed on keydown or something.
> The Autocompleter listens for the keydown event to trigger Ajax
> request. To accommodate the event you are describing, you could wrap
> the Autocompleter#baseInitialize method and add an additional
> mousedown or mouseup listener bound to the same method that the
> keydown listener invokes.
> >   Question 2:
> >   I kept minChars to 2 & I entered "ab" in text box, it shows hints
> > for all matching "ab"s. If I enter "a " (a followed by a space), it
> > does not even invoke anything & does not display hint. Is this a bug?
> > Why space is excluded? Any workaround?
> The reason for this is because the input is stripped (leading and
> trailing spaces removed) which means that a single character followed
> by any number of spaces is still considered a single character. The
> default minChars value is 1, if you're going to be typing a character
> then a space you might want to just leave the default value instead of
> using minChars:2.
> Alternatively, you can override the getToken method to return an
> unstripped string.
> -justin
> >

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to