I have a depdent drop down.

when someone picks a country the regions from the country populate. It
works in 1.2, but when i migrated to 1.3 i had to change a few things
around because the ajax, observeField and javascript helper has been
deprecated

I cant figure the observeField equivalent to this

<?php echo $ajax-
>observeField('countries',array('url'=>'update_region_select','update'=>'regions'));?
>


I tried this


<?php
$this->Js->get('#country_id')->event('change', $this->Js->request(
array('controller' => 'countries', 'action' =>
'update_region_select'),
array(
'update' => '#region_id',
'async' => true,
'dataExpression' => true,
'method' => 'post',
'data' => $js->serializeForm(array('isForm' => false, 'inline' =>
true))
) ) );



?>

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to