By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,439 Members | 1,330 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,439 IT Pros & Developers. It's quick & easy.

moving nodes possible

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

Sep 1 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

Look for

document.insertBefore(nodeToMove, ReferenceNode);

- Peroli Sivaprakasam

Sep 1 '05 #2

P: n/a
I think it's an insert, not a moving from one place to another ??

Sep 1 '05 #3

P: n/a
Hi,
Did you try it? Better try it. I have used it and it worked for me.

- Peroli Sivaprakasam

Sep 1 '05 #4

P: n/a

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.