Microsoft JScript Error '800a01c2'

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
onlymygemini
-


Joined: 26 Aug 2008
Posts: 2

PostPosted: Tue Aug 26, 2008 9:19 pm    Post subject: Microsoft JScript Error '800a01c2' Reply with quote

Somebody help me!
Thank you :D

Microsoft JScript Error '800a01c2'
/blog/lib/inc_function.asp, line 4


Errocode
Code:

--------> var e = new Enumerator(Request.QueryString), x; <--------


inc_function.asp
Code:

<%
//=========get Request input==============
function $getRequestInput(obj) {
  var e = new Enumerator(Request.QueryString), x;
  for(; !e.atEnd(); e.moveNext()) {
    x = e.item();
    obj[x] = $trim(Request.QueryString(x).item);
  }
  e = new Enumerator(Request.Form);
  for(; !e.atEnd(); e.moveNext()) {
    x = e.item();
    obj[x] = $trim(Request.Form(x).item);
  }
  e = null;
}
//---------check Request in-----------------
function $trim(str) {
  return (str || "").replace(/(?:^[\s\n\t\r]*)|(?:[\s\n\r\t]*$)/g, "").replace(/\r/g, "");
}
  /*
  function $checkJPCode(str) {
    //encode ゴ ガ ギ ア ゲ ザ ジ ズ ヅ デ ド ポ ベ プ ビ パ ヴ ボ ペ ブ ピ バ ヂ ダ ゾ ゼ
    //ep: "ゴ" ---> "ゴ"
    return (str || "").replace(/([\u3040-\u30FF])/g, function(mStr, exp1) { return "&#" + exp1.charCodeAt(0) + ";"; });
  }
  */
//---------check SQL Query String-----------------
function $checkStr(str) {
  return (str || "").replace(/\'/g, "''").replace(/\r/g, "").replace(/(wh)(ere)/ig, "$1'+'$2");
}
function $checkInt(intStr) { // Convert String to Int
  if(!intStr) return 0;
  intStr = parseInt(intStr, 10);
  if(isNaN(intStr)) return 0;
  return intStr;
}
function $checkBool(boolStr) {
  if(!boolStr) return false;
  return (boolStr=="true") ? true : false;
}
function $checkUsername(str) {
  if(typeof(str)!="string") return false;
  if($lengthW(str)<3 || str.length>24) return false;
  if(/[^\w\u3400-\u4DBF\u4E00-\u9FAF]/g.test(str)) return false;
  return str;
}
function $checkPassword(str) {
  if(!str) return false;
  if(str.length<6 || str.length>16) return false;
  if(/[^\x20-\x7e]/g.test(str)) return false;
  return str;
}
function $checkEmail(str) {
  if(!str) return false;
  if(str.length<6 || str.length>50) return false;
  var m;
  if((m = str.match(/[\w\[\]\@\(\)\.]+\.+[A-Za-z]{2,4}/g)) != null) {
    if(m[0]==str) return str;
  }
  return false;
}
function $checkURL(str) {
  return (str || "").replace(/document\.cookie/ig, "document cookie").replace(/document\.write/ig, "document write").replace(/javascript:/ig, "javascript ").replace(/jscript:/ig, "jscript ").replace(/vbscript:/ig, "vbscript ").replace(/\<|\>/ig, " ");
}
//-----------Parse DateTime String "2006-05-11 06:20:30"----------
function $parseDateTime(strDateTime) {
  if(!strDateTime) return null;
  var oDate;
  var arr1 = strDateTime.match(/\d+/g);
  if(!arr1) return isNaN(oDate = Date.parse(strDateTime)) ? null : new Date(oDate);
  oDate = new Date();
  var arr2 = ["setYear", "setMonth", "setDate", "setHours", "setMinutes", "setSeconds"];
  for(var i=0; i<arr2.length; i++) {
    arr1[i] = parseInt(arr1[i], 10);
    if(!arr1[i]) arr1[i] = 0;
    if(i==1 && arr1[i]) arr1[i] -= 1;
    if(i==2 && !arr1[i]) arr1[i] = 1;
    oDate[arr2[i]](arr1[i]);
  }
  return oDate;
}
//===========check output String==============================
function $HTMLEncode(str) {
  return (str || "").replace(/\&/g, "&amp;").replace(/\>/g, "&gt;").replace(/\</g, "&lt;").replace(/\t/g, "&nbsp;&nbsp;").replace(/\"/g, "&quot;").replace(/\'/g, "'").replace(/\n/g, "<br />");
}
function $HTMLEncodeLite(str) {
  return (str || "").replace(/\&/g, "&amp;").replace(/\>/g, "&gt;").replace(/\</g, "&lt;").replace(/\"/g, "&quot;").replace(/\'/g, "'");
}
function $URLEncode(str) {
  return (str || "").replace(/\&amp\;/ig,"&").replace(/\&/g, "&amp;").replace(/\>/g, "&gt;").replace(/\</g, "&lt;").replace(/\"/g, "&quot;").replace(/\'/g, "'").replace(/\[/g, "[").replace(/\]/g, "]")
}
//-----------DateTime Output to String //author: meizz
function $getDateTimeFormat(objDate, strFormat) {
  if(!strFormat) strFormat = "YYYY-MM-DD hh:ii:ss";
  if(objDate==undefined) objDate = new Date(); else objDate = new Date(objDate);
  var obj = {"M+" : objDate.getMonth() + 1, //month
              "D+" : objDate.getDate(),    //day
              "S"  : objDate.getMilliseconds(), //millisecond
              "h+" : objDate.getHours(),   //hour
              "i+" : objDate.getMinutes(), //minute
              "s+" : objDate.getSeconds() //second
            }
  if(/(Y+)/.test(strFormat)) strFormat = strFormat.replace(RegExp.$1, (objDate.getFullYear() + "").substring(4 - RegExp.$1.length));
  for(var k in obj) {
    if($re("(" + k + ")").test(strFormat)) strFormat = strFormat.replace(RegExp.$1, RegExp.$1.length==1 ? obj[k] : ("00"+ obj[k]).substring((""+ obj[k]).length));
  }
  return strFormat;
}
//----------Clean <script> & <iframe> Tags-----------------
function $cleanHTML(str) {
  return (str || "").replace(/\<(\/*(?:script|iframe|frameset)[\s\S]*?)\>/ig, "&lt;$1&gt;").replace(/\<br(?:\/| |)\>/ig, "<br />").replace(/\r/g, "<br />");
}
//=========Tools Function==================================
function $cutString(str, outputLen, bSub) {
  if(!str) return "";
  if(!outputLen) return str;
  var strLen, tLen, charCode;
  bSub = (bSub==true) ? "" : "...";
  strLen = str.length;
  tLen = 0;
  for(var i=0; i<strLen; i++) {
    charCode = str.charCodeAt(i);
    if(charCode<0 || charCode>255) { tLen += 2 } else { tLen++ }
    if(tLen>outputLen) { return str.substring(0, i) + bSub; }
  }
  return str;
}
// String Length with Double Bytes Language Support ----------
function $lengthW(str) {
  if(!str) return 0;
  var tLen = 0, strLen = str.length, charCode;
  for(var i=0; i<strLen; i++) {
    charCode = str.charCodeAt(i);
    if(charCode<0 || charCode>255) tLen += 2; else tLen++;
  }
  return tLen;
}
function $getRandomStr(intLength, strSeed) {
  if(!strSeed) strSeed = "abcdefghijklmnopqrstuvwxyz1234567890";
  var seedLength = strSeed.length;
  var str = "", pos;
  for(var i=0; i<intLength;) {
    pos = Math.round((Math.random() * seedLength));
    if(pos>=0 && pos<seedLength) {
      str += strSeed.charAt(pos);
      i++;
    }
  }
  return str;
}
function $keyword(str) {
  if(str.length<3) return str;
  var leng = $cache.keyword.length;
  for(var i=0; i<leng; i++) str = str.$($re($cache.keyword[i].text, "ig"), '<a class="ubb_keyword" href="'+$cache.keyword[i].url+'" target="_blank" title="' + $cache.keyword[i].url + '">' + $cache.keyword[i].text + '</a>');
  return str;
}
function $getServerObject(str) {
  if(!str) return false;
  switch(str) {
    case "fso"     : str = "Scripting.FileSystemObject"; break;
    case "xmlhttp" : str = "MSXML2.ServerXMLHTTP"; break;
    case "xmldom"  : str = "Microsoft.XMLDOM"; break;
    case "stream"  : str = "ADODB.Stream"; break;
    case "conn"    : str = "ADODB.Connection"; break;
    case "rs"      : str = "ADODB.Recordset"; break;
  }
  try { return Server.CreateObject(str); } catch(e) { return false; }
}
function $getFile(strFilePath, intSkip) {
  try {
    var stream = $getServerObject("stream");
    stream.Type = 2;
    stream.Charset = $globalEncoding;
    stream.Open();
    stream.LoadFromFile(Server.MapPath(strFilePath));
    if(intSkip>0) for(var i=0; i<intSkip; i++) stream.SkipLine();
    var file = stream.ReadText();
    stream.Close();
    stream = null;
    return file;
  } catch(e) {
    return "";
  }
}
function $saveFile(strFilePath, strContent) {
  try {
    var stream = $getServerObject("stream");
    stream.Type = 2;
    stream.Charset = $globalEncoding;
    stream.Open();
    //stream.Position = stream.Size;
    stream.WriteText = strContent;
    stream.SaveToFile(Server.MapPath(strFilePath), 2);
    stream.Close();
    stream = null;
    return true;
  } catch(e) {
    return false;
  }
}
function $delFile(strFileFolder, strFileName) {
  strFileName = Server.MapPath(strFileFolder)+ "\\" + strFileName;
  var fso, res = false;
  try { fso = $getServerObject("fso"); fso.DeleteFile(strFileName); res = true; } catch(e) {}
  fso = null;
  return res;
}
function $getXMLNode(strFilePath, strTagName, strAttributeName, strArrributeValue) {
  try {
    var objDom = $getServerObject("xmldom");
    objDom.async = false;
    objDom.load(Server.MapPath(strFilePath));
    var node = objDom.getElementsByTagName(strTagName);
    objDom = null;
    if(strAttributeName && strArrributeValue) {
      for(var i=0; i<node.length; i++) {
        if(node[i].getAttribute(strAttributeName)==strArrributeValue) return node[i];
      }
      return false;
    }
    return node;
  } catch(e) {
    return false;
  }
}
%>
Back to top View user's profile Send private message
swissboney3
-


Joined: 02 Jul 2005
Posts: 31

PostPosted: Fri Aug 29, 2008 8:00 pm    Post subject: Reply with quote

try doing a search in google. search for
Microsoft JScript Error '800a01c2'
and see what that error means
Back to top View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group