Hello all,

I'm hoping to use the Ajax.Autocompleter to help users send private
messages to other users on my site. As the user types in the name of
another user, Ajax.Autocompleter steps in and offers a few relevant
options to help them along. Once they find the right one,
Scriptaculous makes it a breeze for them to select it and enter it
into the input field.

I'd like to take this one more step, however, and make note of the
user id (the primary key associated with the name they selected from
the database) as an invisible field or javascript variable. With this,
it would be simple to send the private message to the appropriate user
id. The problem is that since the backend side of Ajax.Autocompleter
returns an unordered list, I don't know how/ where to store the id
numbers, or how the form could track that somehow.

All help is welcome. Thanks everyone!
-Colin
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to