Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [Javascript] createElements()


  • From: borchers at tridem.de (Michael Borchers)
  • Subject: AW: [Javascript] createElements()
  • Date: Mon Sep 26 08:44:54 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?!