[Proto-Scripty] Re: Autocompleting text fields (customized)

2008-10-31 Thread ColinFine
Oh, right. In that case you can put the email address in , so it will appear in the list but not the input field. Then you'll need to provide an afterUpdateElement callback to extract it from the and put it in your hidden field. Colin On Oct 31, 12:57 am, Sridhar <[EMAIL PROTECTED]> wrote: >

[Proto-Scripty] Re: Autocompleting text fields (customized)

2008-10-30 Thread Sridhar
Hi Colin, Really appreciate your input. Sorry, I should've been more crisper with my requirement. Let me try to do that: When the user types in 'a', I still like the display of the drop down list with contact name and email address one below the other. When I select a contact from the list, I sti

[Proto-Scripty] Re: Autocompleting text fields (customized)

2008-10-30 Thread ColinFine
[I hate top-posting, but that seems to the the norm here] Use 'informal' [1] Make your ajax call return Ada Noel[EMAIL PROTECTED] etc. Then have a CSS rule span.hide {display:none} The CSS will ensure that only the name is displayed to the user, but the Ajax.Autocomplete takes only the text wh