Can you show us the javascript code? If simply the return false didn't work I would say you probably return false in your statement and exit prematurely.
function Validate(form) {
var msg=""
if (form1.name.value.length < 5 || form1.name.value.length > 20 ) {
msg += " Username must be 5 - 20 characters.";
}
if (form1.pwd1.value.length < 5 || form1.pwd1.value.length > 20 ) {
msg += "\n Password must be 5 - 20 characters.";
}
if (msg != "") { alert(msg); return false; }
}
This will not go on to the next statement (that is exit the funtion) if the condifiton is false.
You say it works on another server though check if you are really using the same scripts and configuration.
: In have an onchange event associated with an input control and whe this event fires I validate the contents. If they are valid there is no problem but if they are invalid I use a 'return false;' but the cursor still goes to the next control anyway.
:
: Note:
: I have this logic on two different servers, It works on one but not the other. Thee servers are suposedly the same. What can I look for to solve this problem
:
: Thanks
:
: Andy
:
:
To err is human, but to really foul things up requires a computer. (Farmers Almanac)