On May 13, 6:32 pm, OldWest <[email protected]> wrote:
> Here is my source code snippets:http://bin.cakephp.org/view/327226811

When you tried the example exactly as shown in the book, did it work?

However, you don't need anything like IMO - js belongs in a js file,
not your php source. The best way to do ajax pagination (IMO) is do
_nothing_ relevant in your view/controller files.

and just add something like this to a js file:

addPaging(scope) {
  $('.paging a:not[href^=#]), th a[href*=/page:]',
scope).click(function(e) {
    e.preventDefault();

    $('.container').load($(this).attr('href'));
    addPaging('.container');
  });
}

Or something of the likes.

AD

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