AW: [Javascript] createElements()

Peter Brunone peter at brunone.com
Mon Sep 26 11:06:13 CDT 2005


Guten tag!

   I don't think you need to close those elements if you've created them that way.  There is no "</td>" element; it's only the closing tag of the TD element, and it should be added already.

Cheers,

Peter

 From: "Michael Borchers" borchers at tridem.de

>>
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 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?!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050926/44182cf6/attachment.htm>


More information about the Javascript mailing list