I can see how and Ajax approach dependent upon CF validation
for error messages to the user could be slow.

However, up until now, the only validation I've ever used is server-side
with CF.

I'm working on a method of combining JS for message display, bypassing
the need to refresh a form page as I have been doing, but still using
CF for validation.  I haven't implemented it on a site, yet, but it seems
very responsive in testing.  I'm currently validating each field on blur,
which, as Josh mentioned, provides the user with instant feedback on each
field instead of forcing the user to submit a form to deal with errors.

Also, with this technique, I can do what you mentioned, which is validate
against query data for various purposes, such as checking a user-proposed
username (again as Josh mentioned) or validating addresses for users, etc.

Some of the query-based validation could take longer, sometimes much longer,
but someone on the jQuery list worked out a way to place "spinner" beside
a field while the entry is being validated.

I've had jQuery and CF dancing around each other for the last month trying
to
figure out the best approach.

Looks like I'm close.

Thanks for your insight!  And everyone else's, too!

Rick

-----Original Message-----
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 14, 2007 6:25 PM
To: CF-Talk
Subject: Re: Client-side validation or Server-side Validation?

 >>and using Ajax to send the form data over to a CF page for
validation, but I couldn't get everything to work correctly.

I'm not sure it's a good approach. Ajax has its price: the time needed 
for a request on your server;
May be not as long as reloading the page, but not far.
The advantage of Javascript validation is that it is instantaneous.

IMO, Ajax should preferably be used for dynamic forms, like big selects 
depending on other selects, etc.

-- 
_______________________________________
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:275229
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