Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] IE: tbody and innerHTML
- From: list at tridemail.de (Michael Borchers)
- Subject: [Javascript] IE: tbody and innerHTML
- Date: Mon Jan 22 01:54:59 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@xxxxxxxxxxxx> 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?!
-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: https://lists.LaTech.edu/pipermail/javascript/attachments/20070122/65dcf8e3/attachment.html
- References:
- [Javascript] IE: tbody and innerHTML
- From: Michael Borchers
- [Javascript] IE: tbody and innerHTML
- From: Aaron Bassett
- [Javascript] IE: tbody and innerHTML
- Prev by Date: [Javascript] IE: tbody and innerHTML
- Next by Date: [Javascript] DOM: adding CSS to created DIV
- Previous by thread: [Javascript] IE: tbody and innerHTML
- Next by thread: [Javascript] DOM: adding CSS to created DIV
- Index(es):