Re: Who uses Cake + jQuery ajax

2009-02-25 Thread horatio
answered my own question: $this->layout = 'ajax'; $this->disableCache(); Configure::write('debug', 0); horatio wrote: > > whats involved to "// don't render the full layout" within the > controller? > trying to strip the

Re: Who uses Cake + jQuery ajax

2009-02-25 Thread horatio
whats involved to "// don't render the full layout" within the controller? trying to strip the header and footer from the ajax output. Martin Westin wrote: > > > > Yes As far I remember the controller sees nothing different from a > normal POST. > Just do this and you will be golden: > if (

Re: Who uses Cake + jQuery ajax

2009-01-14 Thread Martin Westin
Yes As far I remember the controller sees nothing different from a normal POST. Just do this and you will be golden: if ( $this->RequestHandler->isAjax() ) { // don't render the full layout } On Jan 14, 11:05 am, Miles J wrote: > Thank you, was the perfect answer. > > Also now on the aja

Re: Who uses Cake + jQuery ajax

2009-01-14 Thread Miles J
Thank you, was the perfect answer. Also now on the ajax controller side, does the post show up in $this- >data? Im assuming yes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

Re: Who uses Cake + jQuery ajax

2009-01-14 Thread Martin Westin
Hi Miles, I like to use "REST light" :) That is: I make sure any data push, modification and similar actions are POST and any data retrieval is GET. create, update, delete = POST find, list, get, show... = GET It makes is a bit cleaner in my head. I do this for non-ajax calls and ajax calls al

Who uses Cake + jQuery ajax

2009-01-13 Thread Miles J
Simple question to anyone who uses CakePHP and jQuery. Do you pass your post variables as post, or as the arguments of the action? When you make ajax calls, do you call it like this: /ajax/delete/123/ Or: /ajax/delete/ POST: id=123 --~--~-~--~~~---~--~~ You re