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 <craignied@gmail.com> wrote:
On Mar 28, 11:24 pm, Yong Gu <zerogy...@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment