The biggest problem with this approach is that it offers nothing in the way
of actual enforcement of data. It takes about 2 seconds to bypass that kind
of validation either by frame hacks or form substitution. 

As long as you still implement the server-side aspect, the choices you have
to notify the user are practically endless. I personally prefer:

- show a small error icon next to the field if it's required and left blank
- show a small warning icon if the data is in an improper format

!k

-----Original Message-----
From: Don L [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 13, 2008 4:54 PM
To: CF-Talk
Subject: Sever-side data validation with ajax

The good news seems that one could validate server-side data using ajax call
to send the form data but the down side seems to be the UI err presentation
part, when there's data problem one would prompt/alert user about it, the js
alert function is one way, write some sort of msg and make it VISIBLE on top
of the problematic field is another (I like this approach better, btw,
fairly easily done), popup is sometimes deemed annoying (alert is popup).
What's your thought?

Thanks. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305257
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