On Aug 11, 6:20 pm, Frederick Cheung <[email protected]>
wrote:
> On Aug 11, 5:23 pm, David Sousa <[email protected]>
> wrote:> >
> Element.insert("#<ActionView::Helpers::JavaScriptVariableProxy:0x7f97a1c5eb
> 18>"...
>
> > So the JS can't find the element.
>
> > I thank you for your help. But I think I will just put an id to the ul
> > element and solve the problem. RJS and prototype is difficult and poorly
> > documented, I can't understand the true advantage behind rjs and pro.
>
> Prototype is fine, but RJS can only do so much. Nothing wrong with
> ditching RJS if you need more than it can give.
>
oh, and page.literal("$$('#comments_list ul')") may not have worked
because $$('#comments_list ul') returns an array whereas insert is
probably expecting a single element. $$('#comments_list ul')[0] might
work better.
Fred
> Fred
>
>
>
> > Best regards,
>
> > David Sousa
> > --
> > Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---