Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18539

Re: Node removal problem

Newsgroups comp.lang.javascript
Subject Re: Node removal problem
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <79283e5f-05ae-4848-85fa-fd67dad12b96@googlegroups.com> <07aef4fc-18ba-4918-afd9-b1e5ae24a02b@googlegroups.com> <51221997$0$1183$ba4acef3@reader.news.orange.fr> <XnsA16B9359EF661eejj99@194.109.133.133>
Date 2013-02-18 14:36 +0100
Message-ID <XnsA16B94AC6714eejj99@194.109.133.133> (permalink)

Show all headers | View raw


Evertjan. wrote on 18 feb 2013 in comp.lang.javascript:

> but what is wrong with:
> 
> <td style="cursor:pointer" onclick="
>    var a = this.parentNode;
>    a.parentNode.removeChild(a);
> ">
> 
> Surely the parentNode of a <td> always is a <tr>?

or

<td style="cursor:pointer" 
onclick="
   var a;
   (a = this.parentNode).parentNode.removeChild(a);
"> 



-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 10:09 -0800
  Re: Node removal problem Martin Honnen <mahotrash@yahoo.de> - 2013-02-16 19:29 +0100
    Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 10:37 -0800
      Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 10:44 -0800
      Re: Node removal problem Martin Honnen <mahotrash@yahoo.de> - 2013-02-16 19:46 +0100
        Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 11:10 -0800
          Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 13:25 -0800
            Re: Node removal problem SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2013-02-18 14:56 +0100
              Re: Node removal problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-18 22:05 +0100
        Re: Node removal problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-16 23:05 +0100
          Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 14:44 -0800
            Re: Node removal problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-16 23:51 +0100
  Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 15:19 -0800
  Re: Node removal problem SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2013-02-17 02:46 +0100
  Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 17:59 -0800
    Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 18:44 -0800
      Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 19:08 -0800
        Re: Node removal problem justaguy <lichunshen84@gmail.com> - 2013-02-16 19:54 -0800
        Re: Node removal problem SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2013-02-18 14:41 +0100
    Re: Node removal problem SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2013-02-18 13:07 +0100
      Re: Node removal problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-18 14:29 +0100
        Re: Node removal problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-18 14:36 +0100
          Re: Node removal problem SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2013-02-18 15:13 +0100
        Re: Node removal problem SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2013-02-18 15:05 +0100
          Re: Node removal problem "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-18 22:01 +0100

csiph-web