colette
11-27-2003, 02:38 PM
Hi all, me again, but with a simple one this time (i hope) ;) ,
I've got a form in a web page, in which I have used some regular expressions on some fields to validate and on a couple of others just straight forward javascript to ensure the field isn't left blank.
It works fine in IE but when I view it in Netscape the reg exp fields work fine but the fields that just ensure it's not empty seem to be just skipped over? There are no error messages, it just ignores those lines.
My question is, is there particular coding I could use so Netscape doesn't ignore these fields?
My present code for one of the problem fields is:
if ((form.DeliveryAddress.value) == false) {
alert("Please enter an address for delivery of your order. You can't complete your order without it.");
form.DeliveryAddress.focus();
form.DeliveryAddress.select();
return false;
}
all the validating codes are called in a simple onSubmit function within the form tag.
Many thanks in advance.
Colette
:thumbsup:
I've got a form in a web page, in which I have used some regular expressions on some fields to validate and on a couple of others just straight forward javascript to ensure the field isn't left blank.
It works fine in IE but when I view it in Netscape the reg exp fields work fine but the fields that just ensure it's not empty seem to be just skipped over? There are no error messages, it just ignores those lines.
My question is, is there particular coding I could use so Netscape doesn't ignore these fields?
My present code for one of the problem fields is:
if ((form.DeliveryAddress.value) == false) {
alert("Please enter an address for delivery of your order. You can't complete your order without it.");
form.DeliveryAddress.focus();
form.DeliveryAddress.select();
return false;
}
all the validating codes are called in a simple onSubmit function within the form tag.
Many thanks in advance.
Colette
:thumbsup: