If the controller method throws an error it will stop the data being
returned correctly and will stop your ajax call from functioning as
expacted.
You need to figure out why Cake is spitting out "uncaught exception:
Invalid JSON"
With my jQuery AJAX stuff I return values using:
$response = json_encode($results);
echo $response;
Not sure if this make's any difference.
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php