<% '############################################# '# XMLHTTP constants # '############################################# ' A server page which processes XMLHTTP requests. Const cnstXMLHTTPCallProc = "ProcessXMLHTTPCalls.asp" ' A form's ENCTYPE attribute ('application/x-www-form-urlencoded' is a default one) Const cnstXMLHTTPURLEncode = "application/x-www-form-urlencoded" Const cnstXMLHTTPMultiPart = "multipart/form-data" ' These are boundaries added around Response value passed back to XMLHTTP object. ' JavaScript uses RegExp.match() to take value surrounded. Const cnstXMLHTTPResponseStart = "@@xmlhttp" Const cnstXMLHTTPResponseEnd = "xmlhttp@@" ' These are boundaries added around Response value passed back to XMLHTTP object if server script reported an error. ' JavaScript uses RegExp.match() to take error value surrounded. Const cnstXMLHTTPResponseErrStart = "@@xmlerrhttp" Const cnstXMLHTTPResponseErrEnd = "xmlerrhttp@@" ' Parameter names to identify the calling page and server function to call. */ Const cnstXMLHTTPCallerName = "xmlhttpclr" Const cnstXMLHTTPFunctionName = "xmlhttpfnc" ' Use it as a prefix and argument numbers as suffixes to post and recognize values through HTTPXML. Const cnstXMLHTTPParName = "xmlhttppar" Const cnstXMLHTTPInitPErr = -1 Const cnstXMLHTTPInitPErrMsg = "Cannot initialize XMLHTTP component. Please make sure you use Internet Explorer version 6+" Const cnstXMLHTTPConnectErr = -2 Const cnstXMLHTTPConnectErrMsg = "Cannot connect to the server" Const cnstXMLHTTPNoValServerErr = -3 Const cnstXMLHTTPNoValServerErrMsg = "Server did not return any value" Const cnstXMLHTTPServerSpecErr = -4 ' Server returned some error message which is not predefined (client doesn't know) Const cnstXMLHTTPServerLogoutErr = -5 Const cnstXMLHTTPServerLogoutErrMsg = "You either did not log in or were logged out" %>