Archive for August, 2008

Codeigniter: AJAX Pagination

[ Update:  Download the example and source file from download page. ]

Few days ago, I was looking for an AJAX pagination for codeigniter. Then i saw this AJAX pagniation by Gin2. He used Prototype. In my case i wanted to use JQuery. I saw his approach and wanted to make it work for my project and after a quick typo the pagination library is done.

Though the use is same as the built in pagination system except another extra config parameter :

$config['div'] = ‘#content’; /* Here #content is the CSS selector for target DIV */

Requirements: Make sure you have added the Jquery.js file on top of the view file. Download latest Jquery from here. Put “Jquery_pagination.php” file in you application/library folder and use it as a separate library.

Files: Jquery_pagination Check here : www.github.com/neotohin

I will try to add an example and a little tutorial very soon. Be in touch… :D

Modification:

To add extra javascript code after clicking the links or do other binding add the extra javascript code in

$config['js_rebind'] = “alert(‘it works !!’); “;

Here is the new File: Jquery_pagination Check here : www.github.com/neotohin

Comments (49)

Where is the Include Coming From ??? [ Ref: ]

Today i saw this post referenced by Derek Allard and found it handy.

The Includes of the system map out of the dependencies of the system. [ Here ]

Tools Used to Develop Such maps are.. [here] and [ here ]

Check this for CodeIgniter:

Comments (1)