Thanks for all the feedback. I've done some refactoring and modifications to the framework. I'll see if I can't get around to packaging it up (I need to clean up some of the javascript) and try to post it by tomorrow. I'll rework the demo to demonstrate all of the new features.
Josh: I'll put it in .zip format and correct the errors, thanks for the proof reading. New additions: Multiple form support Full support for Text, Textarea, Checkbox, Radio and Select fields Prefix support (new optional <input type="hidden" name="prefix" value="<PREFIX HERE>"/> Automatic class="valid" / class="valid" class injection on blur Automatic enabling / disabling of the submit button w/ proper enabling on postback Proper postback handling (incase there is an error when the form is submitted and needs to be redisplayed to the user --ex. an <input type="file"> left blank) Refactored to only a single API api to enable the whole package Removal of "MARK" support, MARK now should be left to the RIFE to inject "invalid" automatically on a postback. Cheers, Tyler On 7/3/06, Joshua Hansen <[EMAIL PROTECTED]> wrote:
Hi Tyler, This is very nice! I have a request and a question. :) First, the request: Can you post a zip version of the 'Ajax_Validation_Framework.rar' attachment? As a reason, zip is pretty universal. I had to go find a RAR decompressor, and after a quick failure to build unrar on my Cygwin dist, I downloaded WinRAR which has a 40 day trial period. And, second, my question (someone else may be able to answer this) is where is ProjectSettingsHelper? I don't see it in the base RIFE distribution or the RIFE/CRUD distribution. I also see that it is referenced on the wiki 'Best Practices' page (http://rifers.org/wiki/display/RIFE/Best+Practices) A couple editing notes about the (http://rifers.org/wiki/display/RIFE/Adding+AJAX+Validation+To+Your+Forms) document itself (I can make the edits if you like): * The ProjectSettingsHelper should be removed or changed to something that is present in the RIFE jars. * (Minor point) I didn't catch that I needed to add the getters and setters to the Category bean. * (Minor point) Including the site element declaration for category would be helpful. * (Minor point) There is an extra period in the package declaration for CategoryElement: "package com.warfrog..elements;" * (Minor point) The AJAX-ified template uses a bean name of "<input type="hidden" name="bean" value="com.warfrog.portal.beans.Category"/>", which is different from the previously defined bean package name "com.warfrong.beans". Very cool though! Josh -- Joshua Hansen Up Bear Enterprises (541) 760-7685 (new #) Tyler Pitchford wrote: > I wrote up an AJAX Form Validation Framework for RIFE. The framework > uses your existing MetaData and ERRORS: / MARK: tags to build it's > responses, so the AJAX validation will look exactly like the standard > POST validation that RIFE uses. Thought some of you might find it > useful, so I posted the source code and a small article on how to use > it: > > http://rifers.org/wiki/display/RIFE/Adding+AJAX+Validation+To+Your+Forms > > I'd appreciate any feedback or bugs you find. > > Happy coding, > Tyler > _______________________________________________ > Rife-users mailing list > [email protected] > http://lists.uwyn.com/mailman/listinfo/rife-users > > _______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
_______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
