<code snippet>
function setCombo(mytext)
{
alert('setting the combo');
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.loadXML(mytext);
document.write("<br>Error Code: "); document.write(xmlDoc.parseError.errorCode);
document.write("<br>Error Reason: "); document.write(xmlDoc.parseError.reason);
document.write("<br>Error Line: "); document.write(xmlDoc.parseError.line) ;
while (xmlDoc.readyState!=4)
{
}
alert('ready state is '+xmlDoc.readyState);
if(xmlDoc.readyState==4)
getValues(xmlDoc);
}
function getValues(xmlDoc)
{
if (xmlDoc.readyState==4)
alert("XML file loaded!")
else
alert("XML file NOT loaded! "+xmlDoc.readyState)
xmlObj=xmlDoc.documentElement;
alert('The status for dom is '+xmlDoc.statusText);
}
</code snippet>
in above code snippet, in the last alert in function getValues() , I'm getting status as 'undefined'.
I expect status to be 200 so that I can parse the xml
string.
can anybody tell me what wrong might be happening here.