php - codeigniter pagination via ajax -


is possible generate ci pagination via ajax sending page numbers through ajax instead of $config['url_segment'].

$(document).on("click",".pagination li a",function(event) {     event.preventdefault();     var segment = $(this).attr("data-ci-pagination-page");     if(!segment){         segment = 0;     }     $.ajax({             method: "post",             url: "<?php echo base_url(); ?>login/function",             data: {limit: segment}         }).done(function($data){             $("#contents").html($data);         });  }); 

if pass pagination variables through ajax how can config them.

enter image description here


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -