I've used ajax validation successfully in one case: the user is signing up 
with a unique username, but form has several/many additional fields as well.

On change of the username field only, do an ajax call check against the 
database to see if the username or email they entered is unique.  If yes, 
show a "must reenter" message; if not, show a "username ok" message and they 
continue along the form.

Of course you want to back it up with server-side validation as well, but it 
offers a good experience for the user;  they don't have to fill out the 
whole form before finding out if they've entered a unique username or not.

-- Josh

----- Original Message ----- 
From: "Claude Schneegans" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, April 14, 2007 3:25 PM
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.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

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