title: GET xmlHTTPrequest not working
body: <p>i am trying to make an ajax commenting system where if a new comment is posted, the document title changes to (1) website title (like twitter)</p>
  
  <p>my code is here  </p>
  
  <p>The xmlHTTPrequest</p>
  
  <pre><code> function loadXMLDoc7(url)
          {
          if (window.XMLHttpRequest)
            {// code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp=new XMLHttpRequest();
            }
          else
            {// code for IE6, IE5
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
          xmlhttp.open("GET",url,false);
          xmlhttp.send(null);
          document.getElementById('newcomments').innerHTML=xmlhttp.responseText;
          }
  </code></pre>
  
  <p>The PHP</p>
  
  <pre><code>    echo "&lt;script type='text/javascript'&gt;
      function auto2comments()
      { 
      var MyDiv1 = document.getElementById('uiuiui');";
      echo "loadXMLDoc7(MyDiv1.innerHTML)";
      echo "}";
      echo "setInterval(\"auto2comments()\",15000);&lt;/script&gt;";
      }
  </code></pre>
  
  <p>The DIV uiuiui contains /newcommentingi.php?show=0&amp;id=username
  The problem is when the Newcomments DIV gets filled, it shows<br>
  ID =<br>
  Show = 0<br>
  why?</p>