Thanks, Dan!

That sounds great!  I definitely give it a go!

Rick

-----Original Message-----
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 23, 2007 5:52 PM
To: CF-Talk
Subject: RE: Scorpio - What to do until then?

Rick,

>At first, I used Jorn's Validation plug-in, but soon found myself
>wanting to use CF functions to validate data and not just what
>Jorn's plug-in offered.  I had a good working solution (without CF
>involved)
>with his plug-in, but wanted to use CF so I could validate against
>queries, etc, too.

In my Spring <br /> Presentation I did yesterday, I should off an example
that implements:

* Applies any local validation defined
* Submits form via AJAX
* If the server finds errors, displays them to the user inline (looks like
client-side validation)
* If the server actually submits the results, then display a "Thank you"
message.

I think you'd find this flow would work exactly like what you're trying to
achieve. Also, in my demo if you disable JS, everything still works as
expected--which is what *should* happen.

I've posted my presentation at:
http://blog.pengoworks.com/blogger/index.cfm?action=blog:585

Take a look at the files for "ex2.5_mailing_list_validation_ajax.cfm" It
shows off how you can combine local validation (using Jorn's Form Validation
Plug-in) and submitting the form via AJAX (and reporting errors back.)

You can also see the demo live at:
http://www.pengoworks.com/workshop/jquery_demo/ex2.5_mailing_list_validation
_ajax.cfm

If you try to sign up with the e-mail address with my e-mail address, you'll
notice you get an AJAX error (it'll have the string "[AJAX]" in it.)

NOTE: The check for duplicate e-mails is hardcoded for the example, e-mail
addresses aren't actually being added to anything.

All the source code is in the presentation download.

-Dan




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:273627
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to