||View All MessagesBack to WebFX|
it is a bit confusing for me what happens with this
this.newNode.obj = this;
I do not really get why something like
this.newNode.onclick = new Function("this.remove()");
does not work. When you see it like this, you expect you make a reference to node.remove(); But after all you could expect this.remove references to the div it is appended to.
I guess it is a mather of thinking to difficult. Quite annoying actually..
Sent: September 29, 2003
Subject: Re:Adding functions with object prototyping
Hi, I found a solution:
//if the attachEvent isn't required