Hi, Claude...

> I don't see why I should give detailed and 
> polite notice about what he is doing wrong.

So, if a user's input fails server-side validation, do you not
give an error message to the user?

(That's one of the aggravating parts about dual validation or
using client-side and server-side... I've got to be able to deliver
the client-side error messages and then be able to deliver the
server-side responses, too... I see the necessity now, but it sure
is a lot more work)

> I must also say that in all my applications, forms are mostly used by 
> the customer to manage his own data
> in his own intranet, and I don't remember any issue when the user tried 
> to goof his own system.

The vast majority of my forms are this purpose, too, and I validate mostly
to insure the customer's data integrity, but also for security.

Rick

-----Original Message-----
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 15, 2007 5:24 PM
To: CF-Talk
Subject: Re: Client-side validation or Server-side Validation?

 >>Does the JS and CF validation have to be totally independent in 
functionality?

Basically yes ;-)
I mean:
1º Javascript is so useful for so many things, I simply won't let a user 
fill a form if they have Javascript disable, period.
2º the main reason for validating data client side is for the user's 
comfort, so that he can correct mistakes right away
    before submitting the form.
2º Starting for that, once a field has been validated on client side, 
the only reason it could be invalid on the server
    would be because some hacker is horsing around with my system. In 
that case, the only concern is security and
    database integrity, and I don't see why I should give detailed and 
polite notice about what he is doing wrong.
    CFQUERYPARAM and SQL validation will give me the security I need.

I must also say that in all my applications, forms are mostly used by 
the customer to manage his own data
in his own intranet, and I don't remember any issue when the user tried 
to goof his own system.

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275294
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to