CI Pagination and JQuery UI Tabs |
[eluser]Jan_1[/eluser]
Hi together, I'm using JQuery UI Tabs (http://docs.jquery.com/UI/Tabs) and in one tab I want to use CI Pagination. I do get the pagination links and on click I get the right url in the browsers adressfield. But nothing else happens. The site does'nt reload. :down: Does JQuery block it? Am I doing a mistake? Need some help. Thank You!!!! controller: Code: function index() kasse_model: Code: function get_allmy_ks_buchungen($num, $offset) view: Code: [removed]
[eluser]LuckyFella73[/eluser]
I don't know if that the problem but the offset value seems to be not right: Code: $data['ks_buchungen'] = $this->kasse_model->get_allmy_ks_buchungen($config['per_page'],$this->uri->segment(1)); Code: $this->uri->segment(1) // usually returns your controller name - no offset value
[eluser]Jan_1[/eluser]
Thank you LuckyFella73, you are right, but that doesn't solve the problem. Any other Idea? More hints from everybody would be great!!!! Greetings, Jan
[eluser]HarishKumar[/eluser]
Hi Jan I have read your code.. There is a problem in ur offset. Follow this link.This will really help you. http://ellislab.com/forums/viewthread/138528/ This link provide you a good solution. By using this code you will be able to perform pagination using ajax in jquery. You will not have to always post your page by click on the links provided by create_links. By using the link provided above you can send request through ajax. |
Welcome Guest, Not a member yet? Register Sign In |