views:

645

answers:

1

How can I load content depending on the selection of a selection box? I want to load an array from the controller in php, and use it on the javascript, I don't know if I need to put that array in javascript, I guess that Zend_Dojo takes care of that for me.

My question is similar to this one that hasn't been answered: http://dojotoolkit.org/pipermail/dojo-interest/2006-November/021736.html

ex:

The user selects a Country from a selection box, and immediatly in the other one, that Country's cities appear.

+1  A: 

I know this is sort of a cop-out but I believe I asked and answered the the questions here. Basically you need a controller action that returns the JSON for your data store and you need to include some dojo to bind the data store to your dijit form element.

Erik