D
DarthOptimus
Hi,
There is javascript code on my jsp to prevent double submission of a
form:
<SCRIPT type="text/javascript" language="JavaScript">
var firstSubmit = true;
function isFirstSubmit() {
returnValue = firstSubmit;
firstSubmit = false;
return returnValue;
}
</script>
on submit it calls a validation function at the end of which is the
following
if(isFirstSubmit()) {
return(true);
}
else {
return false;
}
This prevents double submits well but if I press the back button on the
next page (which calls history.back(1) it still has firstSubmit set to
false (when done in Firefox and Safari) although it works in IE because
it seems to reload the page which would reset the variable,
Is there any way to reset the variable without having to click the
reload button on the browser for Firefox and Safari?
Thanks for your help!
There is javascript code on my jsp to prevent double submission of a
form:
<SCRIPT type="text/javascript" language="JavaScript">
var firstSubmit = true;
function isFirstSubmit() {
returnValue = firstSubmit;
firstSubmit = false;
return returnValue;
}
</script>
on submit it calls a validation function at the end of which is the
following
if(isFirstSubmit()) {
return(true);
}
else {
return false;
}
This prevents double submits well but if I press the back button on the
next page (which calls history.back(1) it still has firstSubmit set to
false (when done in Firefox and Safari) although it works in IE because
it seems to reload the page which would reset the variable,
Is there any way to reset the variable without having to click the
reload button on the browser for Firefox and Safari?
Thanks for your help!