> Jorge Godoy writes: > > "Jason Bunting" <[EMAIL PROTECTED]> writes: > > >> Jorge Godoy on Thursday, November 16, 2006 at 8:25 AM wrote: > >> > >> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > >> > >> > var newTable = DIV({'id':'action-place'},FORM({},TABLE({'class': > >> > 'small-font','style':'margin-left:14em'}, > >> > TBODY(null, > >> > map(row_display, rows))))); > >> > > >> > swapDOM("action-place", newTable); > >> > >> Remember that IE *requires* THEAD and TFOOT. > > > > That is not correct; it simply requires TBODY (see > > http://www.mochikit.com/doc/html/MochiKit/DOM.html#dom-gotchas) > > When in doubt, "Ask Bob" ;-) > > http://groups.google.com.vc/group/mochikit/tree/browse_frm/month/2005- > 12/541f615fc0f4f14b?rnum=61&_done=%2Fgroup%2Fmochikit%2Fbrowse_frm%2Fmonth > %2F2005-12%3F > > See item 2 in the above thread. > > You can also remove thead and tfoot from the example in the link you cited > and > see if it works. It won't.
Well, here ya go: <html> <head> <title>No THEAD or TFOOT needed...</title> <script type="text/javascript" src="MochiKit/MochiKit.js"></script> <script type="text/javascript"> connect(window, "onload", function(){ var myTable = TABLE({border:1}, TBODY(null, TR(null, TD(null, "Hello"), TD(null, "World!")))); appendChildNodes("myDiv", myTable); }); </script> </head> <body> <div id="myDiv"></div> </body> </html> This works just fine in IE 6, IE 7, and FF, no THEAD or TFOOT. Jason Bunting -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.14.6/535 - Release Date: 11/15/2006 3:47 PM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---