I've had also tried to follow the instructions at Mark's blog. I have succeded midly in doing it with jquery. But there are a few issues that I've been facing.
1. The success callback is not called when using jquery. (using complete instead) 2. Where should I put the paging element?, outside the updated element or inside the updated element?. If I put the pager outside everything works well except that the pager doesn't get updated If I put the pager inside the updated element with a new $js- >writeBuffer() after everything the generated JS isn't executed. Is there a correct way to do this? On Oct 25, 3: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. > CakePhp1.3seems 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-Ajaxedpagination. > > > However, when choosing jQuery, the links stops working. > > > By that I mean: they are dead. Nothing, not even regularpagination, > > > 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 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
