I'm after some advice with one of my web pages. I currently look after a website for local karate group and one of my pages uses a bit of xml to build a table and populate the date. If i browse this page via Firefox or IE, it is fine, but on Chrome its blank :(
I cannot work out for the life of me why this is happening. Appreciate any assistance...
var xmlDoc=null;
if (window.ActiveXObject)
{// code for IE
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{// code for Mozilla, Firefox, Opera, etc.
xmlDoc=document.implementation.createDocument("","",null);
}
else
{
alert('Your browser cannot handle this script');
}
if (xmlDoc!=null)
{
xmlDoc.async=false;
xmlDoc.load("documents/gradings.xml");
var x=xmlDoc.getElementsByTagName("STUDENT");
document.write("");
document.write("");
document.write("NameGrade Passed");
document.write("");
document.write("");
document.write(xmlDoc.getElementsByTagName("MONTH")[0].childNodes[0].nodeValue);
document.write("");
for (var i=0;i