Sunday, August 30, 2009

$ajax->observeField not working

Hi,

i have a Problem with cake and his ajax

Follow Code is working very well (Target: $ajax->div('test')):

echo $ajax->link('Details','/regions/update_select',
array( 'url'=> array( 'controller' => 'regions', 'action'
=>'update_select' ),
'update'=>'test',
));

But the same code with a select field doesn't work:

echo $ajax->observeField('district_name',
array( 'url'=> array( 'controller' => 'regions', 'action'
=>'update_select' ),
'update'=>'test',
'onChange'=>true));

The response from the server is emty.
Hope somebody can help me :)
Thanks
Justin

--~--~---------~--~----~------------~-------~--~----~
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: