이 같은
뭔가 아마 당신을 위해 작동합니다 :
가 요청의 끝에 임의의 숫자가 있는지 확인하는 것입니다
<html>
<head>
<script type="text/javascript">
function sendData(obj) {
var xmlhttp;
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
// Do stuff when script returns
alert(xmlhttp.responseText);
}
}
xmlhttp.open("GET","script.php?" + obj.name + "=" + obj.value + "&t="+Math.random(),true);
xmlhttp.send();
}
</script>
</head>
<body>
Input 1 <input type="text" onblur="sendData(this)" name="input1" /><br />
Input 2 <input type="text" onblur="sendData(this)" name="input2" /><br />
Input 3 <input type="text" onblur="sendData(this)" name="input3" /><br />
</body>
</html>
브라우저가 캐시 된 응답을 반환하는 대신 실제로하지 않습니다 귀하의 데이터를 서버로 보냅니다.
해결할 수있는 현재 코드가 있습니까? 우리는 출발점없이 당신을 도울 수 없었다. :) – sailhenz