Re: [Rails-spinoffs] (SOLVED) Re: autocompletion: hooking'afterUpdateElement' in Rails

2006-04-02 Thread Thomas Fuchs
I've added this to the rails trunk, but slightly altered the proposed patch, (see the comment on #3691). Here's the changeset: http://dev.rubyonrails.org/changeset/4131 -Thomas Am 02.04.2006 um 15:19 schrieb Bob Silva: I lobbied to get this included in 1.1. Not sure why it wasn't accepted.

RE: [Rails-spinoffs] (SOLVED) Re: autocompletion: hooking'afterUpdateElement' in Rails

2006-04-02 Thread Bob Silva
I lobbied to get this included in 1.1. Not sure why it wasn't accepted. Bob Silva http://www.railtie.net/ > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Alain Ravet > Sent: Sunday, April 02, 2006 3:12 AM > To: rails-spinoffs@lists.r

[Rails-spinoffs] (SOLVED) Re: autocompletion: hooking 'afterUpdateElement' in Rails

2006-04-02 Thread Alain Ravet
There's already a tiny patch in the waiting list that solves that very problem: http://dev.rubyonrails.org/ticket/3691 [PATCH] Add frequency and afterupdateelement option to text_field_with_auto_complete It justs adds 2 lines in the _auto_complete_field_ method (java_script_macros_help

[Rails-spinoffs] autocompletion: hooking 'afterUpdateElement' in Rails

2006-04-02 Thread Alain Ravet
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