|
|
 |
FN-FORUM: javascript error
date posted 5th January 2005 17:54
I have the following bit of JavaScript
function validate() {
if (!validcontents(document.block_form.username.value)){
alert("Please complete a valid User Name");
self.document.block_form.username.focus();
return false;
}
alert("kk");
if (!validcontents1(document.block_form.member.value)){
alert("Please complete a valid Member Id");
self.document.block_form.member.focus();
return false;
}
return true;
}
The alert "Please complete a valid User Name"); appear ok when I don't put
in the username but if I do put in the user name I don't get the alert "kk".
If I take out
if (!validcontents(document.block_form.username.value)){
alert("Please complete a valid User Name");
self.document.block_form.username.focus();
return false;
}
I get the alert "kk" and "Please complete a valid Member Id" as expected.
Any ideas please as it is driving me mad.
Thanks
Pam
|
 |
|