I'm no expert on Cake/Ajax integration, or the prototype libraries & extensions, but here's a few ideas for how to do this without a specialist controller just for Ajax.
The Prototype/Scriptaculous helpers make use of the fact that prototype/scriptac indentify their HTTP requests by setting something in the request header. If this isn't done in JQuery (which uses prototype under the hood?), then I'm sure you can manually set something similar in the header. Then, partition your controllers well so you have specific methods that are used to create parts of a normal page and can be called by Ajax, and then just make sure you switch to a blank / sparse layout when the request is made via an Ajax call (perhaps in the beforeFilter callback). Hope that makes some kind of sense. On a side note, when it comes to javascript libs, I think it's time to abandon the prototype libraries, and use YUI - Jack Slocum's extensions provide all the jQuery power, a million times faster... Good luck with this! Woody --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
