Hi there again all
I am having trouble with retrieving data from an xml file
Here is the code I am using can anyone tell me where my problem lies?
Code:
function GetxmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
  
function GetxmlHttpObject() {
  var xmlDoc = GetxmlHttpObject();
  xmlDoc.load('coords.xml');
  var len = xmlDoc.childNodes.length;
 var newcoords = xmlDoc.childNodes(0).childNodes(0).firstChild.text;
 	parent.document.receiver.thepos.value = len;  
}
as I am very new to Javascript and AJAX I am not very familiar with the process yet and I have not been able to get the xml loaded.
Obviously I am declaring this all wrong as I receive the error that load is not a function of xmlDoc!