×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    6

    problem with appendChild method

    Hi,

    I have problem when trying to add new elements xmltree by using appendChild:

    // let's assume we have node1 and node2

    var newnode = node1.cloneNode( true);

    var newnodenamebefore = newnode.nodeName;
    node2.appendChild( newnode);
    var newnodenameafter = newnode.nodeName;

    Now for some reason newnodenamebefore and newnodenameafter are not equal. It seems that after newnode is appended to node2 it get's same nodeName than node2.

    Is this bug or what is the reason?

  2. #2
    Registered User
    Join Date
    Jul 2008
    Posts
    3

    Re: problem with appendChild method

    Can you provide a more concrete example / sample code?

    I created a quick example using JavaScript and XHTML, and nodeName was consistent and worked as I would expect.

  3. #3
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Singapore
    Posts
    101

    Re: problem with appendChild method

    Hi,

    I can't replicate the problem either, it works fine for me. Maybe you can check your code, a little typo (uppercase/lowercase) could make all the difference.

    Cheers,
    Valerie / Forum Nokia

Similar Threads

  1. Problem with RRtpSession::OpenL() method
    By mitesh_thakkar in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-08-21, 09:43
  2. problem in draw method
    By mitu in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-12-22, 13:14
  3. Problem when Line.open method invoke(Incooming call event)
    By sarveshnokia in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2005-10-13, 04:17
  4. Problem when acces the class in Main method please help.
    By sarveshnokia in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-10-06, 17:48
  5. problem not invoke destroyApp method in 3650 phone...
    By crony94 in forum Mobile Java General
    Replies: 3
    Last Post: 2003-06-12, 06:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×