Having trouble getting the XML to display from the request below. The URL is working fine when checked, so I'm unsure why it's not showing up. Can anyone help me figure out what's going on? There should be content in ResponseText, not "NULL".
var url = "https://services.lexel.co.uk/paf/";
loadXMLDoc(url)
function loadXMLDoc(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);
alert(xmlhttp.responseText);
}