Hi,
While working on a project, I ran into the problem of appending
<tr>''s to a table in IE 6.
I am using new Insertion.Bottom(element, content); for this.
This works fine in Firefox but in IE 6, I don''t get an error but
nothing appears in the table.
I know that IE treats innerHTML of a table as read only, but going through the
following post, I assume there is some fix for it.
http://www.robsanheim.com/2005/10/11/prototype-insertion-ie-6-trs-and-invalid-target-element-for-this-operation/
The solution suggested the following -
if (this.element.tagName.toLowerCase() == ''tbody''
|| this.element.tagName.toLowerCase() == ''tr'') {
this.insertContent(this.contentFromAnonymousTable());
I added the extra "tr" line but it still doesn''t work for me.
I can always do a Element.update() but it''s unnecessary as I have a
huge code that would need to be generated again.
Could someone please help me out with this?
Thanks in advance,
Mandy.
p.s. Could someone also let me know if all my tables should have a tbody? Does
that matter in IE?