The best (jQuery) validation plugin I've used is: http://docs.jquery.com/Plugins/Validation
I wouldn't need (or want) Aiki to generate the JavaScript for me, since I'll likely want to edit it. However, I would like Aiki to insert classes into the form inputs in a way that is compatible with the Validation plugin, such as class="required email" class="url" minlength="2" etc. Christopher 2012/3/24 Jakub Jankiewicz <[email protected]> > > > On Sat, 24 Mar 2012 10:25:22 +0100 > Roger Martín <[email protected]> wrote: > > > Hi Christopher! > > > > > > > Maybe there should be two fields, "process": and "validation": ? > > > > > > > > Ok.New engine can recognize expression with some functions, so this > > can be do as expression that contains a _self as reference (jakub's > > idea): > > > > - process: make a transformation of a given value. > > Example: "trim(_self)" > > > > - validation: just says if field is valid or not. > > Example: "_self > 1 AND _self < 2". > > > > Here the problem is javascript validation. We need a way to share the > > 'expression' between PHP and JS. > > If expression will be handled in php, I can add javascript validation > to forms. > > One thing that will be nice to have is validation as Regular Expression > (regex). > > > > > > > > > > I also want to see more about how to load and insert form values > > > from/to multiple tables. > > > > > > > > load data from multiples table will be possible using forms "SQL" > > field, but with a important restriction: only ONE record per forms. > > Of course you can show using a 'html' field with (sql( markup a > > table of record..but can't edit them. > > Edit/insert values for multiples tables is not possible..in this first > > version. > > > > > > * the "layout": - I want to know more about this > > > > > > > Layout is the way to output label,input and additional tag for a > > field. Examples: > > > > layout p-br: > > <p><label> User name <label><br><input type=text ...><span>Between > > 5-8</p> > > > > layout-table > > <tr><th><label> User name <label></th><td><input type=text > > ...><span>Between 5-8</td></tr> > > > > layout-p > > <p><label> User name <label><input type=text ...><span>Between > > 5-8</p> > > > > layout-dl > > <dt><label> User name <label></dt><dd><input > > type=text ...><span>Between 5-8</dd> > > > > In case of forms with table and dl layout, aiki will add the tag > > <table> and <dl> and close them. > > > > > > > > > There's no way for Aiki forms engine to support every kind of form > > > markup. > > > > > > ..ups..sorry i don't understand. > > > > > > > > > I wonder if instead the Aiki forms markup could allow us to > > > interleave HTML and aiki markup. > > > > > > yes, i'm already working on it. > > -- > Jakub Jankiewicz > twitter: @jcubic > www: http://jcubic.pl > -- ——— christopher adams 86 186 1172 0021 | 1 646 201 3335 49 15 156 219931 | 886 953 036 630 chris.raysend.com
_______________________________________________ Mailing list: https://launchpad.net/~aikiframework-devel Post to : [email protected] Unsubscribe : https://launchpad.net/~aikiframework-devel More help : https://help.launchpad.net/ListHelp

