I am a relatively recent convert to Zend, and I've no prior experience with Dojo - I've read the documents I've been able to find, and scan-read a couple of books, but am now feeling a little bemused. I'm sure there's something 'obvious' I'm missing, but I'm not sure what... I'm hoping a hint from a Zend/Dojo enthusiast will point me in the right direction.
My objective is to create a 'dynamic form' (my own description) where, near the top of the form, there's a Zend_Dojo_Form_Element_FilteringSelect - the selection in which determines which of a number mutually exclusive fields should be displayed below. I'm hoping to use a Zend_Dojo_Form_Decorator_StackContainer (in a sub-form) and populate that with a sub-form for each of the (sequences of) mutually exclusive fields. (This strategy seems to work for a Dojo_Form_TabContainer - though, obviously, this permits the user to supply values for irrelevant fields...) I've come unstuck at at the point that I want to, somehow, 'connect' the Zend_Dojo_Form_Element_FilteringSelect Dijit to the Zend_Dojo_Form_Decorator_StackContainer. I'm aware that I'll need to generate (or write) some Javascript... but I'm not sure where to start. Should I be writing it as part of the view - in Javascript directly? If so, what is the interface? Can this be done programmatically in PHP - using the framework to generate the Javascript? Is anyone aware of a working example that does something like this? I'm aware that my next hurdle will be to, somehow, construct a response from my form/sub-forms and submit that to the server as a post. Is it recommended to do this with JSON (and, if so, how is that done?) or is there a better (more simple) approach? Thanks in advance for any pointers... -- View this message in context: http://www.nabble.com/Zend_Dojo_Form-with-Zend_Dojo_Form_Decorator_StackContainer-tp24791907p24791907.html Sent from the Zend Framework mailing list archive at Nabble.com.
