I have a java script code snippet where I make an XMLHTTP request to a remote server page. Below is my code
var objXMLdom = new ActiveXObject("Microsoft.XmlDOM")
var objXMLRecdom = new ActiveXObject("Microsoft.XmlDOM")
objXMLdom.async = false
var objXMLRoot = objXMLdom.createElement("root");
objXMLdom.documentElement = objXMLRoot;
objXMLRoot.setAttribute("strWoCode",id);
var objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
strHTTP = "getDataResponse.aspx?wocode="+strWoCode+"&mode="report";
objXMLHttp.open("POST",strHTTP,false)
objXMLHttp.send(objXMLdom);
When the last line (send ()) is executed, the error message "msxml3.dll: loading of the specified resource failed." Appears. My development machine runs on Win XP SP 2
Can anyone help get rid of this?
Shyju source
share