function Xajax()
{
if (xajaxDebug) this
this
this
//Get the XMLHttpRequest Object
this
{
if (xajaxDebug) this
var req;
try
{
req=new ActiveXObject(
}
catch (e)
{
try
{
req=new ActiveXObject(
}
catch (e
{
req=null;
}
}
if(!req && typeof XMLHttpRequest !=
req = new XMLHttpRequest();
if (xajaxDebug) {
if (!req) this
}
return req;
}
// xajax
this
{
return document
}
// xajax
this
{
var objHead = document
var objScript = document
objScript
objScript
objHead[
}
// xajax
this
{
if (window
{
//eval的含義?
eval(
}
else
{
eval(
}
}
// *ajax
this
{
if (window
{
eval(
}
else
{
eval(
}
}
// *ajax
this
{
var objParent = this
objElement = document
objElement
objParent
}
// xajax
this
{
var objSibling = this
objElement = document
objElement
objSibling
}
this
{
var Obj;
if (sType ==
{
alert(
Obj = document
}
else
{
Obj = document
Obj
Obj
Obj
}
return Obj;
}
// xajax
this
{
var objParent = this
var objElement = this
objParent
}
// xajax
this
{
var objSibling = this
var objElement = this
objSibling
}
// xajax
this
{
objElement = this
if (objElement
{
objElement
}
}
//xajax
//with a different text
this
{
var bFunction = false;
eval(
if (typeof txt ==
{
txt = txt
bFunction = true;
}
if (txt
{
var newTxt =
while (txt
{
x = txt
newTxt += txt
txt = txt
}
newTxt += txt;
if (bFunction)
{
eval(
eval(
}
else if (this
{
eval(
}
}
}
// xajax
function Xajax()
{
if (xajaxDebug) this
this
this
//Get the XMLHttpRequest Object
this
{
if (xajaxDebug) this
var req;
try
{
req=new ActiveXObject(
}
catch (e)
{
try
{
req=new ActiveXObject(
}
catch (e
{
req=null;
}
}
if(!req && typeof XMLHttpRequest !=
req = new XMLHttpRequest();
if (xajaxDebug) {
if (!req) this
}
return req;
}
// xajax
this
{
return document
}
// xajax
this
{
var objHead = document
var objScript = document
objScript
objScript
objHead[
}
// xajax
this
{
if (window
{
//eval的含義?
eval(
}
else
{
eval(
}
}
// *ajax
this
{
if (window
{
eval(
}
else
{
eval(
}
}
// *ajax
this
{
var objParent = this
objElement = document
objElement
objParent
}
// xajax
this
{
var objSibling = this
objElement = document
objElement
objSibling
}
this
{
var Obj;
if (sType ==
{
alert(
Obj = document
}
else
{
Obj = document
Obj
Obj
Obj
}
return Obj;
}
// xajax
this
{
var objParent = this
var objElement = this
objParent
}
// xajax
this
{
var objSibling = this
var objElement = this
objSibling
}
// xajax
this
{
objElement = this
if (objElement
{
objElement
}
}
//xajax
//with a different text
this
{
var bFunction = false;
eval(
if (typeof txt ==
{
txt = txt
bFunction = true;
}
if (txt
{
var newTxt =
while (txt
{
x = txt
newTxt += txt
txt = txt
}
newTxt += txt;
if (bFunction)
{
eval(
eval(
}
else if (this
{
eval(
}
}
}
// xajax
this
{
var i
if (document
document
if (xajaxStatusMessages == true) window
if (xajaxDebug) this
if (sRequestType == null) {
var xajaxRequestType = xajaxDefinedPost;
}
else {
var xajaxRequestType = sRequestType;
}
var uri = xajaxRequestUri;
var value;
switch(xajaxRequestType)
{
ca** *ajaxDefinedGet:{
var uriGet = uri
for (i =
{
value = aArgs[i];
if (typeof(value)==
value = this
uriGet +=
}
uriGet +=
uri += uriGet;
postData = null;
} break;
ca** *ajaxDefinedPost:{
postData =
postData +=
for (i =
{
value = aArgs[i];
if (typeof(value)==
value = this
postData = postData+
}
} break;
default:
alert(
}
r = this
r
if (xajaxRequestType == xajaxDefinedPost)
{
try
{
r
r
}
catch(e)
{
alert(
return false;
}
}
r
{
if (r
return;
if (r
{
if (xajaxDebug && r
else if (xajaxDebug) xajax
if (r
xajax
else {
alert(
document
if (xajaxStatusMessages == true) window
}
}
delete r;
}
if (xajaxDebug) this
r
if (xajaxStatusMessages == true) window
delete r;
return true;
}
// Tests if the new Data is the same as the extant data
this
{
if (!document
{
return true;
}
var oldData;
if (attribute ==
{
tmpXajax = this
if (tmpXajax == null)
{
tmpXajax = document
tmpXajax
tmpXajax
tmpXajax
document
}
tmpXajax
newData = tmpXajax
tmpXajax
}
eval(
if (newData != oldData)
return true;
return false;
}
//Process XML xajaxResponses returned from the request
this
{
if (xajaxStatusMessages == true) window
var tmpXajax = null;
xml = xml
if (xml == null) {
alert(
document
if (xajaxStatusMessages == true) window
return;
}
for (i=
{
if (xml
{
var cmd;
var id;
var property;
var data;
var search;
var type;
var before;
for (j=
{
if (xml
{
cmd = xml
}
if (xml
{
id = xml
}
if (xml
{
property = xml
}
if (xml
{
type = xml
}
}
if (xml
{
for (j=
{
if (xml
{
if (xml
search = xml
}
if (xml
{
if (xml
data = xml
}
}
}
else if (xml
data = xml
else
data =
var objElement = this
try
{
if (cmd==
{
alert(data);
}
if (cmd==
{
eval(data);
}
if (cmd==
{
this
}
if (cmd==
{
if (this
{
eval(
}
}
if (cmd==
{
eval(
}
if (cm*==
{
eval(
}
if (cmd==
{
this
}
if (cmd==
{
this
}
if (cmd==
{
this
}
if (cmd==
{
this
}
if (cmd==
{
this
}
if (cmd==
{
this
}
if (cmd==
{
eval(
}
if (cmd==
{
this
}
if (cmd==
{
this
}
}
catch(e)
{
alert(e);
}
delete objElement;
delete cmd;
delete id;
delete property;
delete search;
delete data;
delete type;
delete before;
}
}
delete xml;
document
if (xajaxStatusMessages == true) window
}
}
var xajax = new Xajax();
From:http://tw.wingwit.com/Article/program/Java/hx/201311/25917.html