469,306 Members | 2,537 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

moving nodes possible

Hi,
is there a possibility to move a node from one child position to
another ?
thanks
Wolfgang

Sep 1 '05 #1
4 1413
Hi,

Look for

document.insertBefore(nodeToMove, ReferenceNode);

- Peroli Sivaprakasam

Sep 1 '05 #2
I think it's an insert, not a moving from one place to another ??

Sep 1 '05 #3
Hi,
Did you try it? Better try it. I have used it and it worked for me.

- Peroli Sivaprakasam

Sep 1 '05 #4

ewosch wrote:
is there a possibility to move a node from one child position to
another ?


Yes, if for methods like
appendChild
insertBefore
you pass in nodes already in the document tree then they are removed
from the old position before being inserted at the new position.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Sep 1 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Xamle Eng | last post: by
6 posts views Thread by Paul J Lay | last post: by
2 posts views Thread by Diogo Alves - Software Developer | last post: by
4 posts views Thread by reflex | last post: by
2 posts views Thread by Bart Steur | last post: by
reply views Thread by linkswanted | last post: by
reply views Thread by linkswanted | last post: by
Sl1ver
6 posts views Thread by Sl1ver | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.