Multiple effects during AJAX callbacks

Russell Dsa wrote:

Hey all,
I've done some searching online and looking through the Agile book but can't seem to find how one can put multiple effects in a single rails callback...

As an example:

form_remote_tag(:update => something_element,
                :url => { :action => some_action }
                :loading => do something
                :complete => "new Effect..." AND "new Effect"
               )

How would I accomplish adding two effects for the :complete callback?
(sorry if this is a n00b question)

Thanks,
Russ

Checkout RJS. I have a list of sources that should be helpful at the bottom of http://blog.mattmargolis.net/articles/2006/06/14/rjs-headache-or-savior

Matthew Margolis
blog.mattmargolis.net

Matthew Margolis wrote:

Russell Dsa wrote:

                :complete => "new Effect..." AND "new Effect"
               )

How would I accomplish adding two effects for the :complete callback?
(sorry if this is a n00b question)

Thanks,
Russ

Checkout RJS. I have a list of sources that should be helpful at the
bottom of
http://blog.mattmargolis.net/articles/2006/06/14/rjs-headache-or-savior

Matthew Margolis
blog.mattmargolis.net

Thanks for the reply Matthew. I am indeed familiar with RJS...I was just
hoping there was a more "convenient" way of doing it directly in the
input field.

Russ

  You can always just put multiple statements in there:

:complete => "new Effect...; new Effect..."

-Ezra