I have been developing my website mostly in Firefox, and have used XML to store my page's information. The page looks fine in Firefor but does not display content in Safari or IE. (www.JPgraFX.com) I have included code that should replace the Http request object with an ActiveX object if unavailable. Any assistance would be helpful.

This defines the HttpRequestObject:

var XMLHttpRequestObject = false;

if(window.XMLHttpRequest) {
XMLHttpRequestObject = new XMLHttpRequest();
XMLHttpRequestObject.overrideMimeType("text/xml");
} else if(window.ActiveXObject) {
XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
}


And this is the getData function used to retrieve info from the XML document:


function getData(dataSource, divID, objInfo) {
if(XMLHttpRequestObject) {

var obj = document.getElementById(divID);

XMLHttpRequestObject.open("GET",dataSource);

XMLHttpRequestObject.onreadystatechange = function() {
if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) {
var xmlDocument = XMLHttpRequestObject.responseXML;


obj.innerHTML = objInfo;


}
}
XMLHttpRequestObject.send(null);
}
}


The XML Document is defined in the getData function as:

var xmlDocument = XMLHttpRequestObject.responseXML


and the variables plugged into objInfo are written as such:

vid = xmlDocument.getElementsByTagName("vid");
Title = vid[tagIndex].childNodes[1];

titleInfo = Title.getAttribute("id");
projectInfo = Title.getAttribute("project");
clientInfo = Title.getAttribute("client");
vidInfo = Title.firstChild.nextSibling.nodeValue;

The most current source code can be viewed at http://www.jpgrafx.com/workT2.html