Dominic wrote:> hi
>
> Is there a way of doing an ajax action on the ''indicator''
parameter
> within an auto_complete_field?
>
> Or will i have to write custom js and screw the auto_complete_field
> function?
>
> Ideas appriciated.
>
> Dominic
>
> --
> Posted via http://www.ruby-forum.com/.
As a general rule, the ''indicator'' should be used for just
that. To
indicate that an AJAX request is occuring to the user. That way the
user knows if network traffic is slow, or the action is taking a long
time. Consequently, the indicator callback should only be a
client-side javascript. Putting another ajax call in there breaks the
design pattern.
However, I see no reason why you couldn''t put an AJAX call into the
:before or :after callback for a remote_function call if you really
need to wrap a call around another call.
_Kevin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---