Zend Framework VS jquery validate Vs Form

Just a quick question if someone already has this setup or has some kind of source code on the Internet.

I want to add some javascript validation to some Zend forms. The direct approach is to write javascript itself, but let me say that it takes a lot of time (and this is not the code that you really want to write all day).

I am wondering if someone wrote some decorators or looked at helpers to automatically generate this validation javascript?

Something using jquery.validate would be great.

If I do not rely, I am going to spend 20 hours to do it myself; -)

+4
source share
2 answers

Good start, you can download a sample of this project:

http://www.zendcasts.com/ajaxify-your-zend_form-validation-with-jquery/2010/04/

you can watch a movie

+4
source

I think this is the right question (and I'm also interested), but as far as I know, there is currently no automated solution. One of the methods that I am considering is to force the Zend_Form validators to automatically add keywords to the element, which can then be “connected” to a more universal javascript solution (see the jquery example below).

http://docs.jquery.com/Plugins/validation http://www.alistapart.com/articles/forward-thinking-form-validation/

I don't have specific codes / examples right now, but when / if I get around, I will be back.

+1
source

All Articles