2005-08-30 07:29:05 +00:00
|
|
|
<!--
|
2005-02-17 08:52:54 +00:00
|
|
|
function NewHttpReq() {
|
|
|
|
var httpReq = false;
|
2005-08-30 07:29:05 +00:00
|
|
|
if (typeof XMLHttpRequest != 'undefined') {
|
2005-02-17 08:52:54 +00:00
|
|
|
httpReq = new XMLHttpRequest();
|
|
|
|
} else {
|
|
|
|
try {
|
2005-05-16 23:41:58 +00:00
|
|
|
httpReq = new ActiveXObject("Msxml2.XMLHTTP.4.0");
|
2005-02-17 08:52:54 +00:00
|
|
|
} catch (e) {
|
2005-05-16 23:41:58 +00:00
|
|
|
try {
|
|
|
|
httpReq = new ActiveXObject("Msxml2.XMLHTTP");
|
|
|
|
} catch (ee) {
|
|
|
|
try {
|
|
|
|
httpReq = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
} catch (eee) {
|
|
|
|
httpReq = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2005-02-17 08:52:54 +00:00
|
|
|
}
|
|
|
|
return httpReq;
|
|
|
|
}
|
|
|
|
|
2005-04-01 15:53:32 +00:00
|
|
|
function DoRequest(httpReq,url,param) {
|
2005-05-23 06:56:10 +00:00
|
|
|
|
2005-02-17 08:52:54 +00:00
|
|
|
// httpReq.open (Method("get","post"), URL(string), Asyncronous(true,false))
|
2006-01-10 15:42:36 +00:00
|
|
|
//popupwin(url+"\n"+param);
|
2005-05-23 06:56:10 +00:00
|
|
|
httpReq.open("POST", url,false);
|
|
|
|
httpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
2006-02-03 08:04:57 +00:00
|
|
|
httpReq.send(param);
|
2005-04-15 14:34:48 +00:00
|
|
|
if (httpReq.status == 200) {
|
2006-01-10 15:42:36 +00:00
|
|
|
//popupwin(url+"\n"+param+"\n"+httpReq.responseText);
|
2005-05-23 06:56:10 +00:00
|
|
|
return httpReq.responseText;
|
2005-04-15 14:34:48 +00:00
|
|
|
} else {
|
2005-05-23 06:56:10 +00:00
|
|
|
return httpReq.status;
|
2005-04-15 14:34:48 +00:00
|
|
|
}
|
2005-04-28 07:04:55 +00:00
|
|
|
}
|
|
|
|
|
2006-01-10 15:42:36 +00:00
|
|
|
function popupwin(content) {
|
2005-08-30 07:29:05 +00:00
|
|
|
var op = window.open();
|
2005-04-28 07:04:55 +00:00
|
|
|
op.document.open('text/plain');
|
|
|
|
op.document.write(content);
|
|
|
|
op.document.close();
|
2006-01-10 15:42:36 +00:00
|
|
|
}
|
|
|
|
//-->
|