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
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
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 .... http://dev.rubyonrails.org/ticket/4273
Well, 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
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