Cannot add tables to elements by setting innerHTML?

J

jceddy

Anyone know why I can't set the following string to the innerHTML
property of a DIV in IE, using JavaScript. Also, anyone have a
suggestion of how to get around it?

'<TABLE width="100%" align=center border=0>
<TBODY>
<TR align=right>
<TD class=filterItemName noWrap>Category:
AllC1CAT1CAT2CAT3CAT4CheckoutOthersSMUD-Test1ScheduleTEST11svtestsvtest
</TD>
<TD class=filterItemName noWrap>Severity: AllUnspecifiedLowMediumHigh
</TD>
<TD class=filterItemName title="Search note text" noWrap>Notes:
</TD></TR>
<TR align=right>
<TD class=filterItemName noWrap>Time&nbsp;Zone: PDMDCDEDADPSMSCSESAS
</TD>
<TD class=filterItemName noWrap>Created By: </TD>
<TD class=filterItemName noWrap>Modified </TD></TR></TBODY></TABLE>'

Cheers,
Joe
 
J

jceddy

I ended up writing code to parse the HTML and manually create the DOM
elements.

Cheers,
Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top