Skip to Main Content
JavaScript - Schritt für Schritt
book

JavaScript - Schritt für Schritt

by Steve Suehring
May 2011
Intermediate to advanced content levelIntermediate to advanced
480 pages
17h 59m
German
Microsoft Press Deutschland
Content preview from JavaScript - Schritt für Schritt
Anhang
451
// Tabellenzeile erstellen
for (i = 0; i < xmlEl.length; i++) {
var row = document.createElement("tr");
// Die row/td-Elemente erstellen
for (j = 0; j < xmlEl[i].childNodes.length; j++) {
// Überspringen, wenn der Typ nicht 1 ist
if (xmlEl[i].childNodes[j].nodeType != 1) {
continue;
}
// Eigentliche text/data-Informationen aus dem XML-Dokument einfügen
var td = document.createElement("td");
var xmlData = document.createTextNode(xmlEl[i].childNodes[j].firstChild. nodeValue);
td.appendChild(xmlData);
row.appendChild(td);
}
tbody.appendChild(row);
}
var tableanchor = document.createElement("a");
var ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Script: Das umfassende Referenzwerk

Java Script: Das umfassende Referenzwerk

David Flanagan

Publisher Resources

ISBN: 9783848320417Purchase bookSupplemental Content