Dan, I had a look at your presentation (nicely done) and a couple of the .cfm pages involved. I noticed that on the ex2_process.cfm page that a comment states:
"If this is an AJAX call, we must return JSON data" As I'm using CF 4.5, I am really not sure if I have the option of return JSON data to an AJAX call. Can you clarify for me whether or not JSON data can be generated using CF 4.5? The point of utilizing JSON data comes up over and over again as I try to realize a solution for using CF server-side validation and AJAX. Thanks, 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273629 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

