xmlhttp status 200 message when adding DOCTYPE to page

I have the following code placed into a function and when the function is called it loads my XML file and displays it in a message box:\[code\]if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { alert(xmlhttp.responseText); } else { alert('Panel not communicating.Reason: '+xmlhttp.status); } }xmlhttp.open("POST","myfile.xml",false);xmlhttp.send();\[/code\]The above code does everything like it's meant to.However, as soon as I add the following code to the top the page:\[code\]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\[/code\]when I load my function it comes up with the following message:\[code\]Panel not communicating.Reason: 200\[/code\]however it still loads my XML file like how I want it to.After searching around it says that xmlhttp status 200 means "OK"Does anyone know why it's displaying this message?
 
Back
Top