[thelist] re: checkboxes, DOM, rows, etc
Fernando Gómez
fgomez at criba.edu.ar
Thu Sep 19 16:55:01 CDT 2002
From: "Tom Dell'Aringa" <pixelmech at yahoo.com>
Sent: Thursday, September 19, 2002 6:38 PM
> Here is the full function I use to add a row:
> ----------
> function addDoctor(name, city, id) //i use id to set id and name
> {
> var docTarget = window.frames['docs'].document;
> var docBody = docTarget.getElementsByTagName("body").item(0);
> var myTable = docTarget.getElementById('mydocs');
> var myTableBody = docTarget.createElement("TBODY");
>
...
> myTableBody.appendChild(row)
> myTable.appendChild(myTableBody)
> docBody.appendChild(myTable)
> }
> ---------------------
Tom:
What about the <form> element? Where does it appear in your document tree?
It looks like it should be a child of the <table>. Is it so?
Fernando Gómez
More information about the thelist
mailing list