I need a little _javascript_ help. I use the following script to validate two
form fields. It's an either or script and it works on an ASP page but when
running on CF MX 6.1 it only partially works. When you get prompted to fill
in the requested field and select "OK" to continue it still process the form
instead of halting. Any ideas...
<!--- Start of Validation Script --->
<script Language="_javascript_">
<!--
function Form1_Validator(theForm)
{
if ((theForm.EMailaddress.value == "") && (theForm.BusinessPhone.value ==
"") && (theForm.HomePhone.value == ""))
{
alert("Please enter a value for a \"Phone Number\" or the \"EMail
Address\" field.");
theForm.EmailAddress.focus();
return (false);
}
return (true);
}
-->
</script>
<!--- End of Validation Script --->
<!--- Start of Form --->
<form name="form1" method="post"
action=""> >&pg=15" Form1_Validator(this)">
Phone: <input type="text" name="HomePhone">
Email: <input type="text" name="EMailaddress">
</form>
<!--- End of Form --->
I'm not a _javascript_ person so if you know of a better script that does the
same thing let me know. Thanks.
Neal Bailey
Internet Marketing Manager
UGA-Association Field Services
E-mail: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the named addressee you should not disseminate, distribute or
copy this e-mail. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and delete this e-mail from your
system. If you are not the intended recipient you are hereby notified that
disclosing, copying, distributing or taking any action in reliance on the
contents of this information is strictly prohibited. Thank you.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

