Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1647425.nE8tuRFhyd@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Thu, 20 Jun 2013 01:16:33 +0200 User-Agent: KNode/4.10.2 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <9e65bc40-ab97-40aa-91ca-5790829262b3@googlegroups.com> MIME-Version: 1.0 Lines: 21 NNTP-Posting-Date: 20 Jun 2013 01:16:34 CEST NNTP-Posting-Host: d5d5a316.newsspool2.arcor-online.net X-Trace: DXC=Ea1Ab2[WlFWf8j24CD<3lPA9EHlD;3YcR4Fo<]lROoRQ8kF]gf^d``VL2kGiRP X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:20359 Gregor Kofler wrote: > Am 19.06.2013 22:57, justaguy meinte: >> I now have a better syntax, >> var node = document.getElementById('workspace'); >> while (node.hasChildNodes()) {node.removeChild();}; >> >> But still, it does not remove all the newly inserted objects inside the >> 'workspace' DIV, how come? > > Maybe because element.removeChild() requires the node to be removed as > an argument? And therefore throws “Error: NotFoundError: DOM Exception 8” and the like to the script console… -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.