[thelist] innerHTML on a table (Was: AJAX Tip)

Pavel Dudrenov dudrenov at gmail.com
Thu Apr 6 16:05:33 CDT 2006


To enshure that IE displays the content of a table the table needs to have a
tbody element. And put wahtever table elements you need to put in the tbody
not the table directly.

Pavel
P.S.
Avoid using innerHTML.

On 4/6/06, Christian Heilmann <codepo8 at gmail.com> wrote:
>
> > > In case someone reading the above thought of doing some innerHTML in
> > > tables:
>
> It is even worse:
>
> DOM generated tables will not show.
> http://icant.co.uk/sandbox/msieXHRtable/exampleXMLxhr.html
>
> This works nicely in Firefox but not in MSIE. MSIE gets and sets the
> innerHTML, but the table is not shown. Is that some messed up
> hasLayout thing?
>
> --
> Chris Heilmann
> Blog: http://www.wait-till-i.com
> Writing: http://icant.co.uk/
> Binaries: http://www.onlinetools.org/
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list