Peterle: createElement problem mit IE

Beitrag lesen

Hallo *,

Ich moechte mit JS in einem div Bereich eine Tabelle erzeugen.

Im NS funktioniert auch alles super nur im IE wird die tabelle nicht angezeigt, es gibt auch keine Fehlermeldung.

Hat jemand eine Idee an was es liegen koennte?

<script type="text/javascript">
  <!--

var ausgabe = top.work.document.getElementById("ausgabebereich_div");
  //alert(ausgabe.id);

var table = top.work.document.createElement("table");

ausgabe.appendChild(table);

//tabelleneigenschaften
  table.setAttribute("border", 1);
  table.setAttribute("frame", 2);

var trh = top.work.document.createElement("tr");
  table.appendChild(trh);

var th_Rechner = top.work.document.createElement('th');
trh.appendChild(th_Rechner);
var inhalt_th_Rechner = top.work.document.createTextNode('Rechner');
th_Rechner.appendChild(inhalt_th_Rechner);
var th_Start = top.work.document.createElement('th');
trh.appendChild(th_Start);
var inhalt_th_Start = top.work.document.createTextNode('Start');
.....
.....

danke
Peterle