some more information.

I tried to debug this in firebug. When i used firebug it shows the
proper response so i an cluseless on why it's not showing on my page


I changed my js code to the following. Does anyone have any idea on
why my results are not being displayed????????


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

On May 26, 3:49 pm, arron <w...@wwisinc.com> wrote:
> 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'=>'re 
> >gions'));?
>
> 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