In CakePHP 1.2 I use $ajax->observeField() to call an ajax function in my controller which then updates a div in the view with the next select box.
I'm not sure if this is supported the same way in 1.3, so I found this: http://bakery.cakephp.org/articles/Calderoy/2011/01/18/how_to_create_an_observefield_equivalent_in_the_new_jshelper On 7 February 2011 19:41, OldWest <[email protected]> wrote: > I am currently trying to work out populating select boxes based on the > previous select box. For example, if I am adding a new Item and select a > Product (within the item/add.ctp), and that specific product hasMany > Category, I want the categories that product is associated with to populate > in the category select box, so I don't need to sift through all unrelated > categories. > > Can anyone give me some advice on the best route for this or guide me to a > tutorial? Thanks : ) > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Kind Regards Stephen @ NinjaCoderMonkey www.ninjacodermonkey.co.uk -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
