Forum: Ruby on Rails RJS Question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b275ea705cc1671f13105d29684cbec?d=identicon&s=25 Scott Walter (sfwalter)
on 2006-02-16 16:10
(Received via mailing list)
Hi,

What would my method call in an rjs template to produce something like:

new Effect.BlindDown($('commentList').lastChild);
I know if I just wanted to the blind effect I would:

page.visual_effect :blind_down, "row_#{@new_item.id}"

but how would I call it if I want the ".lastChild instead of passing a
particular id?

thanks, scott.

----------------------------------------------------------------------------------------------------
What's an Intel chip doing in a Mac? A whole lor more that it's ever
done in a PC.

My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog
This topic is locked and can not be replied to.