ウィンドウアラートと2つの機能の配置方法
関数:「saveEdit」と「setInterval」の設定
私のajax検証エンジンで?
<script>
$(document).ready(function() {
// SUCCESS AJAX CALL, replace "success: false," by: success : function() { callSuccessFunction() },
$("#form1").validationEngine({
ajaxSubmit: true,
ajaxSubmitFile: "note/note.php",
window.alert("Report Sent!");
function saveEdits() {//write a confirmation to the user
document.getElementById("update").innerHTML="Report Sent!";
setInterval(function(){document.getElementById("update").innerHTML="";},3000);
}
})
});
</script>
私はそれを正しく配置するためにホットかわかりません、私がそれを中に入れようとすると、それは常に検証エンジンをエラーに設定します。