hi,
i have "onsubmit=return submitonce(this)" on my form (uploading files & stuff). now, my "check_similar_titles()" function below may open up a pop-up window on some cases, and ask the user whether to continue or cancel the form submission.
so how do i do it? how do i make check_similar_titles=true/false depending on which button was pressed on the pop-up window (not the parent window where the original form's located)???
submitonce looks something like this:
function submitonce(theform){
if (!formCheck(theform)) return false;
if (!check_similar_titles()) return false;
....do some stuff and eventually....
return true;
}
10x, r.
i have "onsubmit=return submitonce(this)" on my form (uploading files & stuff). now, my "check_similar_titles()" function below may open up a pop-up window on some cases, and ask the user whether to continue or cancel the form submission.
so how do i do it? how do i make check_similar_titles=true/false depending on which button was pressed on the pop-up window (not the parent window where the original form's located)???
submitonce looks something like this:
function submitonce(theform){
if (!formCheck(theform)) return false;
if (!check_similar_titles()) return false;
....do some stuff and eventually....
return true;
}
10x, r.