...

View Full Version : unable to append div node



max_developer
06-20-2010, 04:01 AM
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:


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]

max_developer
06-20-2010, 05:13 AM
I solved the problem...I entered one of quotation marks around div id in a different charset...wow finding that took me HOURS.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum