Click to See Complete Forum and Search --> : Form validation - browser issue


kperttu
11-03-2003, 02:31 AM
Hi!

I have a form validation script which is not working properly with Netscape 7.1. With Netscape 4 and IE 6, and also new Opera, it seems to work.

I think problem lies in the lines testing pulldown menus which are like following:

}
if (document.form.JOTILA2[1].checked == true && (document.form.TOHTORIKK.options[document.form.TOHTORIKK.selectedIndex].value=="" || document.form.TOHTORIV.options[document.form.TOHTORIV.selectedIndex].value=="")) {
themessage = themessage + "\n (29) Tohtorintutkinnon hyväksymisajankohta";

Thank you very much for your help!

Perttu Korhonen

kperttu
11-03-2003, 04:41 AM
I guess the problem is fixed now. The reason was, I think, that I hadn't specified the drop down menus' default (i.e. unselected) value to be "". Even Netscape 7.0 guessed what is my purpose, but 7.1 seems to be even stricter. My fault, anyway, to have written such slack form code.