moving nodes possible

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ewosch

    moving nodes possible

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

  • Peroli

    #2
    Re: moving nodes possible

    Hi,

    Look for

    document.insert Before(nodeToMo ve, ReferenceNode);

    - Peroli Sivaprakasam

    Comment

    • ewosch

      #3
      Re: moving nodes possible

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

      Comment

      • Peroli

        #4
        Re: moving nodes possible

        Hi,
        Did you try it? Better try it. I have used it and it worked for me.

        - Peroli Sivaprakasam

        Comment

        • Martin Honnen

          #5
          Re: moving nodes possible


          ewosch wrote:
          [color=blue]
          > is there a possibility to move a node from one child position to
          > another ?[/color]

          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

          Comment

          Working...