How to use Jquery ajax in simple pagination ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to use Jquery ajax in simple pagination ? (/showthread.php?tid=51216) |
How to use Jquery ajax in simple pagination ? - El Forum - 04-24-2012 [eluser]ludo31[/eluser] Hello ; I try to use ajax in jquery : so I create a simple code , it works : it shows the result in my view : Code: <body> and in my controller : Code: public function get_all_users(){ and in my model I create json code . Code: public function ajaxmodel () but now , we suppose that there is a pagination in my code something like that : Code: function index(){ how to use ajax with this code , may be we must change the code and insert json code in Code: $data['rows'] = $this->db->get('chaussure',$config['per_page'],$this->uri->segment(3)); and here don't we change anything Code: $config['base_url'] = 'http://localhost/CodeIgniter1/index.php/site/index'; thanks How to use Jquery ajax in simple pagination ? - El Forum - 04-25-2012 [eluser]skunkbad[/eluser] You should take a look at my Community Auth. It has a full working example of jQuery / CI pagination, and has search features too. How to use Jquery ajax in simple pagination ? - El Forum - 04-25-2012 [eluser]Samus[/eluser] [quote author="skunkbad" date="1335338606"]You should take a look at my Community Auth. It has a full working example of jQuery / CI pagination, and has search features too.[/quote] I just checked this out. Can definately see myself using this in future. How to use Jquery ajax in simple pagination ? - El Forum - 04-25-2012 [eluser]ludo31[/eluser] how to do that ??? for example how to ingrate that in my project for example and just about pagination, How to use Jquery ajax in simple pagination ? - El Forum - 04-25-2012 [eluser]skunkbad[/eluser] [quote author="ludo31" date="1335355510"]how to do that ??? for example how to ingrate that in my project for example and just about pagination, [/quote] Just look at my code and see how I did it. That should give you an understanding about how you can do the same for yourself. How to use Jquery ajax in simple pagination ? - El Forum - 04-25-2012 [eluser]ludo31[/eluser] please ; for pagination for example what files I must see !! I ask that because there are a lot of files in a lot of folder and I don't know where pagination is concerned and also I can't test your code I don't know why because Wampserver don't detect it . so for example in my case pagination : what files in view , model and controller are concerned ??? thanks |