[DOM] Creation de tableau : souci IE
Bonjour
ce code me permet de construire un tableau à exploiter après.
Il est parfaitement fonctionnel avec FF, mais IE ne m'affiche rien, mais il ne me met aucune erreur. J'ai placé des alerts, il détecte bien table comme un objet, donc je ne comprends pas. Merci de votre aide.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| Tache.prototype.creerNodeListerEvt = function ()
{
divPresEvt = document.createElement("div");
divPresEvt.id = "divPresEvt"+this.nomTache;
table = document.createElement("table");
divPresEvt.appendChild(table);
table.id = "tablePresEvt"+this.nomTache;
tr = document.createElement("tr");
table.appendChild(tr);
td = document.createElement("td");
td.appendChild( document.createTextNode("Evenement") );
tr.appendChild( td );
td = document.createElement("td");
td.appendChild( document.createTextNode("Redefinir") );
tr.appendChild( td );
td = document.createElement("td");
td.appendChild( document.createTextNode("Libelle") );
tr.appendChild( td );
td = document.createElement("td");
td.appendChild( document.createTextNode("Action") );
tr.appendChild( td ); //pour les actions
return divPresEvt;
} |