yes, of course
try <%= button_to_remote "Test", :complete => "toggle_all();" %>
which toggle_all is your own defined javascript funciton or use
$('.clazz').each(function(e) { e.toggle()} ) directly instead of
toggle_all()
in fact, the value of parameter :complete is a javascript function , and
visual_effect generate a function by using prototype.js. So you could
use any javascript function as you wish.
On Mon, Mar 29, 2010 at 2:40 PM, Dudebot <[email protected]> wrote:
> On Mar 28, 11:24 pm, Yong Gu <[email protected]> wrote:
> > i never tried that, but i think you could iterate the elements with the
> > class name like:
> ...
>
> Thanks--I was hoping that I could chain the events within/around the
> visual_effect method--any idea if that's possible in this framework?
>
> Many TIA again,
> Craig
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.