Zend Framework - Add new input element using javascript -


i'm working on project using zend framework.

i'm creating form on users can add set of elements pressing + sign.

zend framework uses subforms , decorators array of values form.

these show when page displayed

how new fields created javascript integrate in model?

the best demo of dynamically adding fields on client zend_form familiar comes jeremy kendall:

http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/

the upshot of technique add/call prevalidation() method on form check post fields missing in form. if finds such fields, added form object. time isvalid() , getvalues() called, zend_form_element objects have been attached form, processing runs normal.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -