What I needed to do was to replace a whole set of rows (in a datagrid)
with another set.
Luckily, IE does follow DOM level 2 (at least for what I needed), and I
element will change), and then doing a "page.insert_html" to the
bottom of the tbody (which will at that point have no rows in it).
solved my problem by deleting each row from the bottom up (you have to
do it from the bottom up or the relative indexing of rows within the
It is a pain in the arse, but it does work in both IE and FF.
XSLDatagrid::ROWS_TO_DISPLAY is the number of rows in the tbody named
Here’s the code:
render :update do |page|
(0…XSLDatagrid::ROWS_TO_DISPLAY - 1).to_a.reverse.each do |index|
I have such mixed feelings about this project, it causes me so much
grief but then I always end up learning something useful by overcoming
all these ridiculous f-in’ problems ;).