Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #20359
| 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> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <usenet@PointedEars.de> |
| 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+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| Subject | Re: How to clear/remove all the objects in a DIV? |
| Newsgroups | comp.lang.javascript |
| References | <9f3e516a-a7fb-447a-8d3d-7f1a2c40b57b@googlegroups.com> <9e65bc40-ab97-40aa-91ca-5790829262b3@googlegroups.com> <kptcno$vnu$1@dont-email.me> |
| 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<OcfhCO[4LhWYJTITM\DZm8W4\YJN\b@mF9jNikdU7a5\<`>]gf^d``VL2kGiRP |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.javascript:20359 |
Show key headers only | View raw
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.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to clear/remove all the objects in a DIV? justaguy <lichunshen84@gmail.com> - 2013-06-19 11:14 -0700
Re: How to clear/remove all the objects in a DIV? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-19 20:36 +0200
Re: How to clear/remove all the objects in a DIV? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-06-20 19:52 +0100
Perfect Parlance (was: How to clear/remove all the objects in a DIV?) Christoph Michael Becker <cmbecker69@arcor.de> - 2013-06-21 01:25 +0200
Re: Perfect Parlance (was: How to clear/remove all the objects in a DIV?) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-06-21 09:41 +0200
Re: Perfect Parlance Christoph Michael Becker <cmbecker69@arcor.de> - 2013-06-28 23:56 +0200
Re: Perfect Parlance "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-06-29 00:19 +0200
Re: Perfect Parlance "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-06-29 01:20 +0300
Re: Perfect Parlance (was: How to clear/remove all the objects in a DIV?) Gene Wirchenko <genew@telus.net> - 2013-06-21 12:52 -0700
Re: Perfect Parlance (was: How to clear/remove all the objects in a DIV?) John Harris <niam@jghnorth.org.uk.invalid> - 2013-06-24 21:03 +0100
Re: Perfect Parlance (was: How to clear/remove all the objects in a DIV?) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-06-25 10:50 +0200
Re: How to clear/remove all the objects in a DIV? justaguy <lichunshen84@gmail.com> - 2013-06-19 13:57 -0700
Re: How to clear/remove all the objects in a DIV? JJ <duh@nah.meh> - 2013-06-20 05:20 +0700
Re: How to clear/remove all the objects in a DIV? Gregor Kofler <usenet@gregorkofler.com> - 2013-06-20 00:57 +0200
Re: How to clear/remove all the objects in a DIV? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-20 01:16 +0200
Re: How to clear/remove all the objects in a DIV? justaguy <lichunshen84@gmail.com> - 2013-06-19 17:21 -0700
Re: How to clear/remove all the objects in a DIV? justaguy <lichunshen84@gmail.com> - 2013-06-19 17:39 -0700
Re: How to clear/remove all the objects in a DIV? Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-20 15:27 +0000
Re: How to clear/remove all the objects in a DIV? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-20 18:15 +0200
Re: How to clear/remove all the objects in a DIV? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-06-20 21:01 -0300
Re: How to clear/remove all the objects in a DIV? justaguy <lichunshen84@gmail.com> - 2013-06-20 07:05 -0700
csiph-web