Wednesday, September 14, 2011

Re: Rendering an element with Jquery

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 <profipl...@googlemail.com> 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate