// JavaScript Document
function translate(){
this.method="get";
this.url="
http://localhost/padoo/request.html";
this.asyn=true;
}
translate.prototype={
string:null,
element:null,
parameter:null,
method:null,
url:null,
asyn:null,
setMethod:function(method){
this.method=method;
},
setURL:function(url){
this.url=url;
},
setAsyn:function(asyn){
this.asyn=asyn
},
recv:function(){
var xmlhttp=null;
try{
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
}catch(e0){
try{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}catch(e1){
xmlhttp=new XMLHttpRequest();
}
}
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4){
if(xmlhttp.status==200){
string=xmlhttp.responseText;
}
}
}
xmlhttp.open(this.method,this.url,this.asyn);
xmlhttp.send(this.parameter);
}
}
var procedure=new translate();
procedure.recv();