I have been where you are. Here is a tutorial that helped me greatly:
Of course I was not satisfied with just that, so check out this thread
and the final answer at the end of it:
Let me know if this helps.
On Aug 30, 11:06 pm, "adilraufk...@gmail.com" <adilraufk...@gmail.com>
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment