Hi all, i am trying to use the ajax->observeField code, as below:
<?php echo $ajax->observeField('AcumarcJob.site_id', array('url' => '/
acumarc_sites/list_buildings', 'update' => 'buildings')); ?>
AcumarcJob.site_id is the form field, the url is the action linking to
the view obviously, and then update is where i want the view to be
rendered after it has done its magic...
However nothing happens, and when I look in the Error Console, it
says:
Error: element is null
Source File: http://projair.localhost/js/prototype/prototype.js
Line: 1992
If I remove the ajax line, the error is not there. Have I written it
wrong?
Hope someone can help,
Thanks
Patrick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---