<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I will try to include my old DOM function that 
created the &lt;tr&gt; on the fly and add it to the table.</FONT></DIV>
<DIV><FONT face=Arial size=2>A bit work when layout has to be changed, but it 
works fine so far.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>For each row I have a &lt;tbody&gt; with an unique 
ID, the table looks like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;table&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;thead&gt;&lt;/thead&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;tbody1&gt;&lt;/tbody1&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;tfoot&gt;&lt;/tfoot&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Is there a way to count&nbsp;out the tableBodies in 
order to place the new row exactely before the &lt;tfoot&gt;?!</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=aaronbassett@gmail.com href="mailto:aaronbassett@gmail.com">Aaron 
  Bassett</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, January 19, 2007 4:14 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] IE: tbody and 
  innerHTML</DIV>
  <DIV><BR></DIV>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 
  &lt;tr&gt;'s and &lt;td&gt;'s??<BR><BR><BR><BR>
  <DIV><SPAN class=gmail_quote>On 1/19/07, <B class=gmail_sendername>Michael 
  Borchers</B> &lt;<A href="mailto:list@tridemail.de">list@tridemail.de</A>&gt; 
  wrote:</SPAN>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">my 
    script successfully creates an element TBODY<BR><BR>&nbsp;&nbsp;var 
    offersProductsTbody = 
    document.createElement("TBODY");<BR>&nbsp;&nbsp;offersProductsTbody.id = 
    offersProductsRowID;<BR><BR>&nbsp;&nbsp;offersProductsTable.appendChild(offersProductsTbody); 
    <BR><BR>&nbsp;&nbsp;document.getElementById(offersProductsRowID).innerHTML 
    =<BR>'&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;';<BR><BR><BR><BR><BR>everything 
    works fine when inserting HTML in FF,<BR>but as I understand, IE cannot use 
    the innerHTML method <BR>for writing in &lt;tbody&gt;.<BR><BR>since the 
    table is very big I cannot recreate it by DOM,<BR>it would be too much 
    work.<BR><BR>Any workaround?!<BR></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>