It works for baked index views, also in my upgraded project. It doesn't work for my issues index page, however. And I am not sure what it is.. Maybe the fact that I am paginating related models into the view? Or the fact that I am using custom routes ? I think I'll just learn how to use plain, non-helper-powered Ajax.
On Oct 26, 7:32 pm, mark_story <[email protected]> wrote: > Perhaps you forgot the writeBuffer() call? Unlike the old Ajax > helper, the JsHelper does not make a script element each time a method > is called. Instead it buffers them internally until you call echo $js- > > >writeBuffer(); > > -Mark > > On Oct 25, 5:35 pm, jacmoe <[email protected]> wrote: > > > Check Marks > > blog:http://mark-story.com/posts/view/creating-simple-ajax-pagination-with... > > > I tried it, but no luck yet. > > CakePhp 1.3 seems to be more picky about this than 1.2. > > Will bake a fresh app and make it work, and then try and backtrack my > > own project.. :) > > > On Oct 25, 5:15 pm, dijichi <[email protected]> wrote: > > > > I have exactly the same problem, with mootools. Anyone got this > > > working? > > > > On Oct 22, 10:13 pm, jacmoe <[email protected]> wrote: > > > > > I tried Mootools, jQuery and Prototype - no luck. :) > > > > Prototype and Mootools seems to be ignored by Cake.. > > > > 'Js' => array('Prototype') or 'Js' => array('Mootools') > > > > I only get regular, non-Ajaxed pagination. > > > > However, when choosing jQuery, the links stops working. > > > > By that I mean: they are dead. Nothing, not even regular pagination, > > > > happens. > > > > > This is my link lines: > > > > echo $this->Html->script(array('prototype', 'scriptaculous')); > > > > echo $this->Html->script(array('mootools-1.2.4-core-jm', > > > > 'mootools-1.2.4.1-more')); > > > > echo $this->Html->script(array('http://ajax.googleapis.com/ajax/libs/ > > > > jquery/1.3.2/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/ > > > > jqueryui/1.7.2/jquery-ui.min.js')); > > > > > I am not loading them at the same time. And I load them in my main > > > > layout, in head, just before <?php echo $scripts_for_layout; ?> > > > > > By the way, here's my paginator options: > > > > > <?php $paginator->options(array('update' => 'listing', 'indicator' => > > > > 'spinner', 'url' => $this->passedArgs)); ?> > > > > > And here's my paginator links: > > > > > <?php echo $paginator->prev('<< '.__('previous', true), > > > > array(), > > > > null, array('class'=>'disabled'));?> > > > > | <?php echo $paginator->numbers();?> > > > > <?php echo $paginator->next(__('next', true).' >>', > > > > array(), null, > > > > array('class'=>'disabled'));?> > > > > > I will make a minimal app, and see if I can get it to work there.. > > > > > I am doomed. :P > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
