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: peter at brunone.com (Peter Brunone)
  • Subject: AW: [Javascript] createElements()
  • Date: Mon Sep 26 11:07:19 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@xxxxxxxxx

>>
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.LaTech.edu/pipermail/javascript/attachments/20050926/44182cf6/attachment.html