myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Mitev" <amit...@gmail.com>
Subject Prevent double submit
Date Fri, 15 Sep 2006 07:33:06 GMT
Hi all! I saw the generated html of the form and buttons/links there i
saw that when submit the form clears its target:
function clearFormHiddenParams_loginForm(currFormName) {
  var f = document.forms['loginForm'];
  f.elements['loginForm:_idcl'].value='';
  f.target='';
}
I thought that this could prevent double submit but i doesn't do it.
When i submit the form and till the responce is rendered i submit the
form again, a second request is submited. Any suggestions how to fix
this?

-- 
Seeing is believing

Mime
View raw message