You're right. Dummy me. I inherited a site that works like this and when I
needed to validate another field, I just parked it with the others. Not the
best answer.
JoAnn A. Schlosser
Senior Consultant
Association Management Software
Grant Thornton LLP
Washington, D. C.
703.837.4428
-----Original Message-----
From: Don Vawter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 8:48 AM
To: CF-Talk
Subject: Re: Javascript Validation & Coldfusion ?
Why would you put it in the action page. You are requiring an extra trip to
the server if you do that. If you put your validation in the calling page
and trigger it with the onclick event of the submit button you save that
trip.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 6:40 AM
Subject: RE: Javascript Validation & Coldfusion ?
> I tend to place the js in the action page, assuming the dropdown is in a
> form.
>
> This is what I use to force someone to select a value from a prefix field.
>
> <CFIF parameterexists(FORM.NAME_PREFIX) IS "no" or #trim(FORM.PREFIX)# is
> ''>
> <SCRIPT Language="JavaScript">
> alert("Please Select a Prefix");
> history.back();
> </SCRIPT>
> <CFABORT>
>
> JoAnn A. Schlosser
> Senior Consultant
> Association Management Software
> Grant Thornton LLP
> Washington, D. C.
> 703.837.4428
>
>
>
>
> This e-mail is intended solely for the person or entity to which it
> is addressed and may contain confidential and/or privileged information.
> Any review, dissemination, copying, printing or other use of this e-mail
by
> persons or entities other than the addressee is prohibited. If you have
> received this e-mail in error, please contact the sender immediately and
> delete the material from any computer.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists