On 2/1/08, Shandy Nantz
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> I have this link which when clicked will loop and render more links and
> a form from a partial inside of "myDiv":
>
> <%= link_to_remote ''MyLink'' . . . ., :update
=>"myDiv" %>
> <div id = myDiv>
> <div>
>
> <div>
> <div>
>
> What I am trying to do is have a form_remote_tag that re-renders the
> list of stuff in "myDiv" when something is added but it doesn
work.
>
> form_remote_tag :url => { :action =>. . .}, update =>
''myDiv''
>
> Does it not work because it is inside the div that it is trying to
> render or is there another reason that it totally eluding me? Thanks,
I would drop the :update and use an rjs template with a
page.replace_html call instead.
--
Greg Donald
http://destiney.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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---