title: SharePoint Designer - xmlHTTPRequest innerHTML
body: <p>I have a sharepoint page that filters a data view from a query string in the address bar. I wanted to add further functionality by also returning back any of the files in the main sharepoint library that matches the query string in the address bar. I added a content editor webpart and I added a xmlHTTPRequest that imports the search page with the filtered results into the webpart div. If I use innerHTML = xmlhttp.responseText to populate the webpart div I receive an error message but when I change it to innerText I receive the text from the website. The error message I received was "Unkown runtime error".</p>
  
  <pre><code>var url = "searchresults.aspx?k=*.xlsx&amp;v1=date&amp;start1=1"  
  xmlhttp = new XMLHttpRequest();
  xmlhttp.open('GET',url,false);
  xmlhttp.onreadystatechange = function()
      {
          if(xmlhttp.readyState == 4);
                  {
                     document.getElementById("dv_content").innerHTML = xmlhttp.responseText
                  }
     }
  xmlhttp.send(null);
  </code></pre>
  
  <p>Thanks,
  Anthony</p>