Hi,
i'm just using the JQuery validation plugin. i have the following spec: 'if the form isn't used in 10 seconds, give the user a warning, if he doesn't do anything, submit it anyway'
besides the timer etc. i have this code to submit the form:
timeoutId = setTimeout(function() {
$("#session_expired").val("true");
$("form:first").validate({
onsubmit: false
});
$("form:first").submit();
}, 10000);
what it does: it sets a certain hidden field value and then it submits the form. I've added the validate function to make sure it doesn't validate in this case. Bu you might have guessed it: it doesn't work.
Anyone any clue?
Michel