[thelist] re: checkboxes, DOM, rows, etc

Tom Dell'Aringa pixelmech at yahoo.com
Thu Sep 19 17:20:01 CDT 2002


--- Fernando_Gómez <fgomez at criba.edu.ar> wrote:

> Well, I think we are approaching the end of the story
> (hopefully)...
>
> First of all, I don't think it's a good idea to have <form> and
> <tr> as
> siblings, both children of <table>. Perhaps the whole table should
> be inside
> the <form> element.

That was the way I initially had it I believe...

> But that's just one detail. The most important thing, I think, is
> that you
> use
>
>    docBody.appendChild(myTable)
>
> when you really want to *replace*, not append, the modified table
> (if I did
> not misunderstand you). Try something like
>
>   docBody.replaceChild(myTable,docTarget.getElementById('mydocs'));
>
> [The syntax is: element.replaceChild(newChild, oldChild)]

But..won't this only get me one row each time I add? I need to add
multiple rows..but replacing it..unless I misunderstand, will always
give me one table with one row?

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



More information about the thelist mailing list