[development] "Subclassing" the standard #autocomplete form widget

Darrel O'Pry dopry at thing.net
Thu Jan 18 19:34:25 UTC 2007


On Thu, 2007-01-18 at 11:19 -0800, Rob Thorne wrote:
> The country example was only an example, since it's easy to explain. My 
> actual use cases are much larger:
> 
>     * Looking up a contact from a voter list... you want the user to
>       type from the name, but get back a voter/contact id string or number.
>     * Type the name of a political district (say, a Canadian
>       parliamentary riding), but get back its ID number.
> 
> In these cases, I'd probably have alternate UIs to work with 
> non-JavaScript aware clients (say, a search page), since the AJAX and 
> non-AJAX versions of the UI would need to be pretty different.
> 
> Rob


I would look at the nodereference autoselect widget. It takes a node
title for input and converts it into an nid before stuffing it in the
db.



More information about the development mailing list