1 function EucentricHeight(command,max,speed,place){
5 if(command == "EucentricHeight"){
6 var nmax = document.getElementById("max");
7 var nspeed=document.getElementById("speed");
8 var nplace=document.getElementById("place");
10 var result = document.getElementById("max");
15 ajax.onreadystatechange = getData;
17 result.innerHTML="Onreadystate change error.";
21 ajax.open("GET","//localhost:8000/cgi-bin/vemclient.rb?command="+encodeURIComponent(command)+"&max="+encodeURIComponent(max)+"&speed="+encodeURIComponent(speed)+"&place="+encodeURIComponent(place),true);
22 //document.getElementById("detail").innerHTML="max:"+max;
24 result.innerHTML = "ajax open error";
30 result.innerHTML ="send error";
34 result.innerHTML = "you cannot use ajax....";
38 if (ajax.readyState==4) {
39 if (ajax.status==200) {
40 var resultjson=ajax.responseText;
41 resultjson=JSON.parse(resultjson);
42 nmax.innerHTML = "max:"+resultjson['max'];
43 nspeed.innerHTML="speed:"+resultjson['speed'];
44 nplace.innerHTML="place:"+resultjson['place'];
46 result.innerHTML = "HTTP transmission....";