[Javascript] IE: tbody and innerHTML
Michael Borchers
list at tridemail.de
Mon Jan 22 01:58:53 CST 2007
I will try to include my old DOM function that created the <tr> on the fly and add it to the table.
A bit work when layout has to be changed, but it works fine so far.
For each row I have a <tbody> with an unique ID, the table looks like:
<table>
<thead></thead>
<tbody1></tbody1>
...
<tfoot></tfoot>
Is there a way to count out the tableBodies in order to place the new row exactely before the <tfoot>?!
----- Original Message -----
From: Aaron Bassett
To: [JavaScript List]
Sent: Friday, January 19, 2007 4:14 PM
Subject: Re: [Javascript] IE: tbody and innerHTML
Could you target the element above the table? rather than the tbody and then use innerHTML to write the complete table rather than just the <tr>'s and <td>'s??
On 1/19/07, Michael Borchers <list at tridemail.de> wrote:
my script successfully creates an element TBODY
var offersProductsTbody = document.createElement("TBODY");
offersProductsTbody.id = offersProductsRowID;
offersProductsTable.appendChild(offersProductsTbody);
document.getElementById(offersProductsRowID).innerHTML =
'<tr><td>test</td></tr>';
everything works fine when inserting HTML in FF,
but as I understand, IE cannot use the innerHTML method
for writing in <tbody>.
since the table is very big I cannot recreate it by DOM,
it would be too much work.
Any workaround?!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070122/65dcf8e3/attachment.htm>
More information about the Javascript
mailing list