AJAX pagination with codeigniter and jquery -


can me simple ajax pagination in codeigniter using jquery? paginated list queryed database. searched web exemples complex... thank in advance , sorry bad english...

just use codeigniter pagination simple , use following code pagination through jquery:

<script> $(function(){    $("#pagination-div-id a").click(function(){    $.ajax({    type: "post",    url: $(this).attr("href"),    data:"q=<?php echo $searchstring; ?>",    success: function(res){       $("#containerid").html(res);    }    });    return false;    }); }); </script> 

here pagination div id id of pagination container , containerid simple container id showing result.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -