Java Script Question - 4/10/2001 20:11:00
I have a form that registers a user. It works fine. Now I am trying to create a validation script that checks the password and confirm password fields. I opened the page with notepad and I can see the Java Script for the Form Validator that Front Page created. I want to insert another validation for it to check these fields.I think I have the validation correct and Im almost sure on where to insert it. Here is what I want to try to use: if (theForm.Confirmpw.value != theForm.Password.value) { alert("Password Field and Confirm Password Field do not match. Please make sure the values in these fields match and then submit the Form!"); theForm.Confirmpw.focus(); return (false); } I think it will work. If it doesn't I want to try == instead of !=. The problem is that when I insert the script (using notepad in FP) it doesn't save it! I've even tried to update the file in My documents (successful) and to import it into FP (successful) but when I open it (with notepad) to see if the script is there before publishing it, its not there!!! When I open the page and view it with the FP Editor I cannot see the Java Scripting. I think I know where it is but I just cannot see it. Any idea on what I have to do to accomplish this?
|