You should read the book. Especially the section about the JsHelper
http://book.cakephp.org/view/1593/Methods
The function you might want to use is request().

On 17 Mrz., 09:36, Shashank <[email protected]> wrote:
> Hi,
> I am badly stuck in  a problem here.
> The situation is something like this, i have some feature of a social
> networking site in my site that is under development. What i want is
> that when a user updates his status, the page should not get
> refreshed, it shud just make and ajax call and return the updated
> status with the username and time just below it.
>
> Also i want that the ajax response should return a "Like" and "Comment
> form" along with the updated status so that anyone can comment or like
> it.
> And one more thing is i have tried using ajax, but i caught into a
> problem that is the ajax response from the controller being called
> always updates the complete data of the div, bt i want it to append
> the data so that the previous data is also there.
>
> I have accomplished all these tasks without using ajax i.e. a user can
> post an update and anyone can comment or like it. But i want it to be
> done through ajax as i dont want the page to get reloaded.
>
> Any help will be greatly appreciated.

-- 
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

Reply via email to