-- Gunter Sammet <[EMAIL PROTECTED]> wrote
(on Monday, 03 December 2007, 02:02 PM -0700):
> Besides AJAX validation(/filtering), maybe some autmatic JS validation
> code would be nice. E.g. regex validation works well on server and
> client side. And all the expressions would be the same. Just some
> extra functionality to pull in the JS code into a validation function.
> Not sure how easy it would be for element dependencies but should be
> possible as well. All the existing validation helpers should be easily
> adapted to provide some JS validation. Thoughts!!!

The only problem with this is that just about every JS library does
validation differently. Dojo, for instance, allows you to specify these
as attributes to your <input>, <select>, and <textarea> tags, using a
specific attribute; others do similarly... but all slightly differently.

Another options is that ZF generates JS, but, frankly, I don't want to
go there. :-)

Probably easiest from a ZF perspective is to do server-side validation
of elements; this can be achieved relatively simply on the ZF side, and
would allow developers to use their JS library of choice for making the
request. We could then gather tutorials on how various libraries achieve
this.

> > Not yet; I hope to have a full proposal out later in the week; more on
> > that below. The ideas I'm looking at now are:
> >
> >  * "sectioned" forms -- i.e., forms that have grouped items
> >  * Element dependencies (elements whose validations depend on the
> >    values of other elements)
> >  * Multi-page forms
> >  * AJAX interaction:
> >    * Validating single or multiple elements via AJAX
> >    * Autocompleters

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to