title: How to resolve "Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]" error
body: <p>i have a json object returned from ajax and when i alert it, it is displayed correctly and i try to add those into a unordered list and add that to a place holder div, but throws the above error..</p>
  
  <pre><code>function handleResponse() {
    if(httpa.readyState == 4){
    var response = httpa.responseText;
      //alert(response);
      if(response!='empty')
      {
        //alert(response);
        eval("prod="+response);
        var len = prod.length;
        var st = "&lt;ul&gt;";
        for(var cnt=0;cnt&lt;len;cnt++)
        {
          st = st + "&lt;li onclick='set("+prod[cnt].id+")'&gt;"+prod[cnt].name+"&lt;/li&gt;";  
        }      
        st = st + "&lt;/ul&gt;";
        }
        var tt = document.getElementById('holder1');
        tt.appendChild(st); // i even tried **tt.appendChild(eval(st));**
        tt.style.display = 'block';  
      }
  
  }
  </code></pre>