I have a div around the tbody section of a table. I want the entire tbody removed and replaced. Doesn''t seem to be working though. Is there a problem with page.replace and tables ? Stuart -- en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ 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 groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> I have a div around the tbody section of a table. I want the entire tbody > removed and replaced. > Doesn''t seem to be working though. Is there a problem with page.replace and > tables ?Not a solution, but .... dev.rubyonrails.org/ticket/4273 --~--~---------~--~----~------------~-------~--~----~ 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 groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 12/6/06, Philip Hallstrom <rails-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote:> > > > I have a div around the tbody section of a table. I want the entire > tbody > > removed and replaced. > > Doesn''t seem to be working though. Is there a problem with page.replaceand > > tables ? > > Not a solution, but .... dev.rubyonrails.org/ticket/4273Well, I''m experiencing the problem in Firefox , not in IE. Anyway I tried the suggestion about remove and insert, the remove works, the insert doesn''t. In the page that loads <div id="firstdiv"> <div id="some_div"> <%= render :partial => ''addrow''%> </div> </div> Notice I surrouned the partial with a div, so in the RJS - page.remove ''some_div'' page.replace_html ''firstdiv'', :partial => ''addrow'' I tried page.insert_html ''after'', ''firstdiv", :partial => ''addrow'' Same results. Page.remove works, page insert or replace does not. Any reason why ? Stuart --~--~---------~--~----~------------~-------~--~----~ 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 groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---