HI - loving the potential of Scripty2 as well, and I'm looking to at
the Autocompleter. Very impressed so far!
As @seekay said: "It'd be nice if you could
possibly extend it so that you could set a function to call on
select,
and possibly add some option to return the index of the selected
choice, or add the option to pass json objects with associated info/
urls for the choices."
This would be great if implemented. Imagine you are searching a list
of users in your system, and you need to obviously select the correct
userName but ALSO need to store the userID of the user for (perhaps)
later form submission. One suggestion is actually having the option to
pass an array of objects, but the object will need to have a 'text'
property, or alternatively you could pass the name of the property
you'd like to do the match on.
Then on select the selected object is passed to a function of your
choice. That way you can grapb other properties from it (such as and
ID) and store it etc.
One other little thing: maybe I haven't the bleeding edge build yet,
but if I start typing and then delete everything I type, the
selections in the list still appear. I feel it should not display any
results once everything is deleted.
Let me know your thoughts if possible!
Cheers
Ciaran