Hi everyone,

I need to trigger a Rails action after the autocompletion is completed (when the user has selected an option). From the scriptaculous doc, I figured out 'afterUpdateElement' is the place to be but I wonder if/how and where I can hook my javascript code to this event in Rails code (I'd like to keep using the helper, if possible)?

I tried passing many variations of
:after_update_element=> "alert('after_update_element action')"

in  _text_field_with_auto_complete_  and _auto_complete_field_ to no avail.

Any hint?
TIA

Alain

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to