Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    unable to append div node

    edit: I further identified the problem.

    Hi, I'm new to JavaScript and I'm having problem with appending a div node returned from a function.

    Here's where it crashed:
    Code:
    var div=document.getElementById("dashboard_secondary_cat_list");
    var s=get_secondary_cat_node(attributes);
    alert("b4 appendin:"+s);
    div.appendChild(s);
    alert("done appendin");
    alert("done appendin"); never gets called because the previous line crashes.
    alert("b4 appendin:"+s); shows: b4 appendin:[object HTMLDivElement]
    Last edited by max_developer; 06-20-2010 at 05:09 AM.

  • #2
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I solved the problem...I entered one of quotation marks around div id in a different charset...wow finding that took me HOURS.


  •  

    Posting Permissions

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