AW: [Javascript] createElements()

Michael Borchers borchers at tridem.de
Mon Sep 26 08:45:46 CDT 2005


>>
ich arbeite an einem skript, dass zusammen mit php und js(DOM) on the fly
weitere formular elemente hinzufügt.
das klappt auch schon ganz gut:
http://michaelborchers.net/js/dom.php

nur möchte ich natürlich, dass sich die neuen elemente in die tabelle einordnen.
habe zu diesem zweck schonmal einen <div> benannt.

allerdings kann ich zb mit
document.getElementById("orders").appendChild(myInput);
einen erfolg erzielen (orders = form.name)
mit
document.getElementById("ordersProducts").appendChild(myInput);
nicht (ordersProducts = div.name)
<<

oh sorry for the german content:)
ok, again:
http://michaelborchers.net/js/dom.php

i am working on a php and js based script that creates a new table row with form elements.

so far, i created the new table in a desired place (div ordersProducts)
and parsed the content into the table cells,
but how f.e. can / must i close the td and tr tags?!



More information about the Javascript mailing list