Re: Problem Using Ajax in Cakephp
On Fri, Mar 18, 2011 at 2:02 AM, Shashank wrote: > Finally i am able to use ajax. But now there is one more problem. I use 1) > Ajax form 2) And made an ajax request through jquery. > These are two different forms. For one form i used the ajax form. > And for second one i used the jquery to make the ajax request. > Bt the issue now i am facing is ajax forms need prototype.js and the other > one i used need jquery.js. and as everyone know they r conflicting with each > other. If i remove prototype.js then ajax form stops working and i fi remove > juery my other form stops working. The issue is can anyone tell me hjow to > make the ajax form work only based on jquery. I think you're confusing the terminology. They're both using ajax. By "ajax form" do you mean CakePHP's AjaxHelper? You can use that with JQuery, also. If you're using Cake 1.3.x. I think a better solution would be to skip the AjaxHelper and handle it entirely with yourown code written with jquery. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem Using Ajax in Cakephp
Finally i am able to use ajax. But now there is one more problem. I use 1) Ajax form 2) And made an ajax request through jquery. These are two different forms. For one form i used the ajax form. And for second one i used the jquery to make the ajax request. Bt the issue now i am facing is ajax forms need prototype.js and the other one i used need jquery.js. and as everyone know they r conflicting with each other. If i remove prototype.js then ajax form stops working and i fi remove juery my other form stops working. The issue is can anyone tell me hjow to make the ajax form work only based on jquery. On Fri, Mar 18, 2011 at 1:19 AM, Jens Dittrich wrote: > 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 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Shashank Singh B.E.(Computer Science) Software Developer +91-9711882054 +91-9560545085 Skype id: shashank.singh87 Email: shashank.si...@sourcefuse.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem Using Ajax in Cakephp
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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Problem Using Ajax in Cakephp
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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php