[Javascript] IE: tbody and innerHTML

Aaron Bassett aaronbassett at gmail.com
Fri Jan 19 09:14:08 CST 2007


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?!
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070119/7c8557ee/attachment.htm>


More information about the Javascript mailing list