Ajax within ajax,,

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