title: reading text file inside a div with ajax
body: <p>I am simply trying to read a html file inside a div, now it is not working therefore I tried to read just a a simple text file named a.txt, the text file contains 3 lines "asdasdas" something like that.</p>
  
  <p>It just won't work, the function is being called after pressing a paragraph tag, here is the code:</p>
  
  <pre><code>function New()
  {       
      var xmlhttp;
      if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
          xmlhttp=new XMLHttpRequest();
      }
      else
      {// code for IE6, IE5
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
      xmlhttp.onreadystatechange=function()
      {
          if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
          {
              document.getElementById("divfull").innerHTML = xmlhttp.responseText;
          }
      }
      xmlhttp.open("GET","a.txt",true);
      xmlhttp.send(null);
  }
  </code></pre>