On Oct 11, 9:13 pm, Innovia
<Ami.mahl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi
>
> I am trying to highlight the child div of attendees_box which is the
> attendee_id
>
> so far this is my code
>
> <pre>
> page.replace_html
"attendees_box...-y351YSak5hk@public.gmane.org}", :partial =>
> "attendees", :collection => @event.members
> page.visual_effect(:highlight,
"attendees_box...-y351YSak5hk@public.gmane.org}
> [attendee_id...-lb+cuxeldZdgoHlPtYpdqQ@public.gmane.org}]")
> </pre>
>
So what are the dom ids of the elements you are trying to highlight
and what is the javascript that is generated?
Fred> I can highlight the parent div with no problem, but when i try to
> highlight attendee_id div i get an error
>
> RJS error:
>
> [object Object]
>
> what is the correct syntax to get to the child element?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
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
-~----------~----~----~----~------~----~------~--~---