I didn't see the MIME header in my asp. I am new to asp and I received this asp from another person. Where would I find the MIME header? The first sql statement works fine, it's the second sql statement that does not load. I am using loadXML so I can access each child object.
Like so...
var acctno = rootNode.childNodes.item(0).childNodes.item(1).text
Do I need to clear or reset any variables?
Here is my code...
var objXmlHttp = Server.CreateObject("MSXML2.XMLHTTP"

var objXmlData = Server.CreateObject("MSXML2.DOMDocument"
var sql= "SELECT Bank_No, Account_No, SubTotal_Level FROM global.GNLDetailView WHERE Load_Date='" + sdate + "' AND Dept_No='9999' And SubTotal_Acct = 0 AND Account_Type='A'"
sql = Server.URLEncode (sql);
var graphName= Server.URLEncode ("GNL statement of condition test.dqv"
url = "
+ sql + "&sessionId=" + Request.Cookies("SessionId8050"

+ "&graphName=" + graphName
objXmlHttp.open ("GET", url,false)
objXmlHttp.send();
if (objXmlHttp.status != 200){
Response.write (objXmlHttp.responseText)
Response.end
}
Response.write(objXmlHttp.responseXML.xml)
success = objXmlData.loadXML(objXmlHttp.responseXML.xml)
if (success){
}
else {Response.Write("Unable to load the XML Content "

}
rootNode = objXmlData.documentElement
var acctno = rootNode.childNodes.item(0).childNodes.item(1).text
var levelcode = rootNode.childNodes.item(0).childNodes.item(2).text
var sql= "SELECT Bank_No, Account_Desc, Current_Balance FROM global.GNLDetailView WHERE Load_Date='" + sdate + "' AND SubTotal_Acct='" + acctno + "' And Level_Code='" + levelcode + "'"
//Response.Write(sql)
sql = Server.URLEncode (sql);
var graphName= Server.URLEncode ("GNL statement of condition test.dqv"
url = "
+ sql + "&sessionId=" + Request.Cookies("SessionId8050"

+ "&graphName=" + graphName
//Response.write(url);
objXmlHttp.open ("GET", url,false)
objXmlHttp.send();
if (objXmlHttp.status != 200){
Response.write (objXmlHttp.responseText)
Response.end
}
success = objXmlData.loadXML(objXmlHttp.responseXML.xml)
if (success){
}
else {Response.Write("Unable to load the XML Content 2 "

}