I like it in principle but what is your idea of "ajax based server side validation"... Server side validation needs to always be done prior to the server uitlizing the inputs (inserting into the DB etc). You can't validate using an ajax request and THEN submit the form values using a submit request... You sumbit the form and then validate... Otherwise your validation is easily circumvented and of no value... Right? Am I missing something? Are you talking about ajax submissions encorporating validation?
-Mark -----Original Message----- From: Justin Scott [mailto:jscott-li...@gravityfree.com] Sent: Friday, December 11, 2009 4:55 PM To: cf-talk Subject: For consideration... I'm tired of writing form input validation routines over and over again. Using CFINPUT and its validation options work great for the front end, but it's still a pain to write input validation on the server-side, and the rules between the two can get out of sync, and the built-in validation rules don't have as much flexibility as server-side rules do. I'm working on a project where I have some flexible time to write a new tool and wanted to see if there would be any interest in the community in a tool defined as such: A form library that would allow a form with all of its properties and validation requirements to be defined in one place (likely a JSON file) which would then 1) Generate the form for display (optional), 2) provide for AJAX-based client-side validation, and 3) provide server-side validation. The core library would have a number of built-in validation options and allow for new rules to be added as needed without changing the core library files. My thought is that this would help speed development by centralizing form definitions and properties and make input validation on both the client and server side consistent and reliable without having to constantly write and rewrite huge blocks of cfif/cfelseif code for each form. Thoughts? Opinions? Bad idea? Someone already release something that does this? If it sounds like something you could use, please let me know. If it's pursued, it would be released free for the community to use, but I don't want to waste time building it if something similar exists or nobody else could benefit from it. Any feedback appreciated. -Justin Scott ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329115 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4