Click to See Complete Forum and Search --> : 2nd try - making function true/false depending on a pop-up window


ronnie99
03-12-2003, 10:24 PM
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. :)

AdamBrill
03-12-2003, 11:02 PM
Don't start new threads about the same topic. Post a reply if you want to say something else...