hmmm I don't use the request handler to do my ajax requests, I just echo out the response, would that work ? doing echo $this->render()?
On Sep 14, 11:36 am, Thomas Ploch <[email protected]> wrote: > As an addition, check outhttp://book.cakephp.org/view/980/render > > Am 14.09.2011 17:14, schrieb 8vius: > > > > > > > > > Can you be a little more explicit? I have my ajax action set up that > > will return a json encoded array. How can I get the html for the > > element from my controller? Maybe some example code? I'm a bit of a > > noob with this in general. Thank you. > > > On Sep 14, 11:05 am, Thomas Ploch<[email protected]> wrote: > >> The easiest way would be an AJAX action that renders the element with > >> the given POST data. The you can just use the rendered HTML and inject > >> it into the DOM. > > >> Kind regards > >> Thomas > > >> Am 14.09.2011 16:55, schrieb 8vius: > > >>> Hey all, got a little problem here. I wanna do something similar to > >>> what twitter does when you post a new tweet, that it automatically > >>> adds itself to the stream. I have made an element for this, the > >>> element receives my model data and sets it up properly but I'm not > >>> sure how to pass in the data from Jquery (I receive a JSON object). So > >>> what are my options here? How can I accomplish this? -- 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
