What were you expecting? JSON? Javascript? XML? (Cake)php is generally used to output html. This is true even for ajax calls since a lot of the time people (at least I) simply do an "update" to replace the html contents of some div. You have to be explicit if you want to output something else. (since you don't mention it I have to asume you didn't do that)
You can set headers and things manually or make use of RequestHandler http://book.cakephp.org/view/174/Request-Handling You can also use parseExtensions to output several formats from the same action. If your url ends with .json Cake will choose your json view and so on. If I am totally of in the wrong direction, please provide some more details and maybe I (or someone else) can help out more. On Jun 4, 6:44 am, rocket <[email protected]> wrote: > I keep getting HTML in my AJAX callbacks in Cake 1.2. Does anyone know > why? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
