[thelist] DOM - removeNode() problems
Joshua Olson
joshua at waetech.com
Mon Aug 4 22:07:08 CDT 2003
----- Original Message -----
From: "Jeff Howden" <jeff at jeffhowden.com>
Sent: Monday, August 04, 2003 10:43 PM
> second, you can return an array of all the child nodes in the error <div>,
> loop over that array, and remove each child node independently using the
> removeNode() method, calling it on each child node.
>
> or third, you can return an array of all the child nodes in the error
<div>,
> loop over that array, and remove each child node independently using the
> removeChild() method, calling it on the parent node.
Or forth, put another div within the "errors" div and put the comments
within it. Then, once you've built your replacement content within a new
div, use replaceNode to swap in the new content for the old.
That may be faster than removing the children one by one.
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168
More information about the thelist
mailing list