IMHO, even if you use client-side data checks, you still need to do it on the back-end 
as well.  It's way to easy to subvert client-side only checks.

Keep in mind that CF code will only execute on the server side, so the alert will only 
get returned when the user submits the page.

Kevin

>>> [EMAIL PROTECTED] 07/09/02 01:00PM >>>
Its been awhile since I subscribed to the list. Its nice to be back.  A
quick question.  I'm checking data when the user submits a form and was
wondering if something like this is OK to do.  I can't get the javascript to
work so I tried this.  This is a textarea field.

        <cfif len(form.education) gt 7500>
                <script>
                        alert(" Your data has exceeded its length");
                </script>       
        </cfif>
        

Daniel Bogesdorfer
Senior Programmer / Analyst
Office Of Research Health Sciences
University of Pittsburgh
412.648.2366


______________________________________________________________________
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

Reply via email to