On May 11, 2007, at 9:11 PM, cfingerh wrote:
>
> I''m trying to use a autocomplete text field like the one showed in
> scriptaculous
>
> http://demo.script.aculo.us/ajax/autocompleter_customized
>
> It works. But I want to call a javascript function just afterwards the
> users selects one name.
>
> Is there any
> onselect=>''do_something()''
> to use with text_field_with_auto_complete ?
Yes, there''s:
:after_update_element => "function (e, v) { ... }"
The first argument of the JavaScript function is the textfield
element and so e.value holds the selection, v is the corresponding
list item.
-- fxn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---