Re: Ajaxing a $this->Item->find('all') - twitter style.
You can set your controller to detect ajax requests you can then set the layout to use the ajax layout. This outputs the $content_for_layout var only (not like default.ctp which has html head, body) Request & response objects and request handler are things to look at - S On 28 Dec 2011 12:20, "J." wrote: > Long story short, I want to display all owned items on profiles, but I > don't want to paginate it. > > Is it possible to display only, like 10 items with a find all, and > when the user is scrolling, it lad 10 more, and 10 more etc... like > with twitter tweets ? > > Perhaps with an ajax helper ? Thanks for your time. > > -- > 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 > -- 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: Ajaxing a $this->Item->find('all') - twitter style.
isn't that per definition a pagination? ;) so why don't you use it then? you dont have to make your life harder than it is and yes - you can always set LIMIT to your desired limits ('limit'=>'10, 20') but then you need to make sure you know how many there are (for maximum) etc so in the end I am not sure you are saving time here On 28 Dez., 13:20, "J." wrote: > Long story short, I want to display all owned items on profiles, but I > don't want to paginate it. > > Is it possible to display only, like 10 items with a find all, and > when the user is scrolling, it lad 10 more, and 10 more etc... like > with twitter tweets ? > > Perhaps with an ajax helper ? Thanks for your time. -- 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
Ajaxing a $this->Item->find('all') - twitter style.
Long story short, I want to display all owned items on profiles, but I don't want to paginate it. Is it possible to display only, like 10 items with a find all, and when the user is scrolling, it lad 10 more, and 10 more etc... like with twitter tweets ? Perhaps with an ajax helper ? Thanks for your time. -- 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