Hi,
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".
var url = "searchresults.aspx?k=*.xlsx&v1=date&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);
Thanks, Anthony