日期:2014-05-16 浏览次数:20378 次
<script src="prototype-1.6.0.3.js" type="text/javascript"></script> <script src="json2.js" type="text/javascript"></script> <script type="text/javascript"> function validateID() { var url = "validateID"; var params = Form.Element.serialize("id"); var myAjax = new Ajax.Request(url, { method : "post", parameters : params, onComplete : processResponse, asynchronous : true }); } function processResponse(request) { var action = JSON.parse(request.responseText); $("tip").innerHTML = action.tip; if (action.flag) { document.all("submit").disabled = true; } else { document.all("submit").disabled = false; } } function refresh() { document.getElementById("authImg").src = "auth.jpg?now=" + new Date(); } </script>