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
On 12/6/06, Philip H. [email protected] 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 … 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs