Friend, I have been where you are. Here is a tutorial that helped me greatly:
http://forum.phpsitesolutions.com/php-frameworks/cakephp/ajax-cakephp-dynamically-populate-html-select-dropdown-box-t29.html Of course I was not satisfied with just that, so check out this thread and the final answer at the end of it: http://groups.google.com/group/cake-php/browse_thread/thread/25fa39d4e10bff7c/8698c1252b3cf49a?lnk=gst&q=frederickd#8698c1252b3cf49a Let me know if this helps. On Aug 30, 11:06 pm, "[email protected]" <[email protected]> wrote: > I have a ajax application form , i need to add state country select > boxes to it (again using ajax) > > in my view file every thing goes fine if i use > > ///apply.ctp > echo $form->create('User'); > echo $form->select('country_id',array($countries),null,array > ('id'=>'countries'),false); > echo $form->select('region_id',array(),null,array > ('id'=>'regions'),false); > echo $ajax->observeField('countries',array > ('url'=>'update_region_select','update'=>'regions')); > > but nothing gets updated in state if i am using > > //apply.ctp > echo $ajax->form(); > echo $form->select('country_id',array($countries),null,array > ('id'=>'countries'),false); > echo $form->select('region_id',array(),null,array > ('id'=>'regions'),false); > echo $ajax->observeField('countries',array > ('url'=>'update_region_select','update'=>'regions')); > > is it possible to do this anyway, Please help, Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
