doSubmit('SAVE') is FIREFOX not beeing executed
395454Mar 27 2008 — edited Aug 3 2009Hi,
My application worked for many years until users updated firefox to new version (2.0).
In the page template, I have :
<body #ONLOAD# bgcolor="white" OnUnload="return popQS(); return false;">
The javascript popQS is :
function popQS() {
if (Rupdate)
if (confirm("The data has not been saved,\press on \"OK\" to save, or \"Cancel\" to continue ans ignore changes")) {
Rupdate=false;
doSubmit('SAVE');
}
return true;
}
The functionality :
Many pages have :
1- A "SAVE" button
2- Other buttons that redirect to other pages if no changes have been detected in the current page, otherwise a save is done and the user is no redirected.
When the user click for a redirection button, and a change is detected in the page,
the javascript function popQS() is called :
a- if the user click on "Ok", the page MUST EXECUTE THE doSubmit('SAVE'); and no redirection is done to other pages.
b- if the user clicks on "Cancel", the redirection is done ....
THE FIREFOX BUG (STARTING FROM FIREFOX 2.0) : the doSubmit('SAVE') is not executed !!!
This application is working from 4 years ago, so please any help is appreciated.
Thanks.