Stefan, your plugin also seems to be missing the ability to search on
a part of the result that is not at the beginning of the line.
Example: if I would search for continents (let's say possible results:
North America, South America, Europe, Africa, Asia, Australia), and
started typing "am", I'd want both America's to show up.
On 8/29/06, Dylan Verheul <[EMAIL PROTECTED]> wrote:
> You need a callback. Real world example:
>
> I select a species thru autocomplete. I need to know how rare a
> species is inthe form, The autocomplete should pass me that, but it
> should not show up in the input field.
>
>
> On 8/29/06, Stefan Petre <[EMAIL PROTECTED]> wrote:
> > Jörn Zaefferer wrote:
> > > Stefan Petre wrote:
> > >
> > >> Sure, I will implement this option. Any suggestion for the parameters
> > >> to send to the callback?
> > >>
> > > How about this:
> > > text - The text of the selected entry
> > > value - The value of the selected entry
> > > index - The index of the selected entry in the list of available entries
> > > input - The characters entered so far before selecting an entry, must
> > > take care of autofilled characters, equals 'text' if it was fully entered
> > >
> > > The order should be optimized so the client has to only specify the
> > > parameters he needs most likely, eg. function(text, value) { dosomething }
> > >
> > > On a side note: If a client can write a callback for this, he should be
> > > able to write one for the fx option ;-)
> > >
> > > -- Jörn
> > >
> > > _______________________________________________
> > > jQuery mailing list
> > > [email protected]
> > > http://jquery.com/discuss/
> > >
> > >
> > Can you give me an example of a case that will use all of this
> > parameters? I want to keep it real.
> >
> > The FX is more appealing then a callback for onselect for starters and
> > for that it should have a easy way to implement those effects.
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/