Dylan Verheul 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/
>
>   
I talk about the parameters, not the callback.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to