Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Pagination with AJAX JQuery on XAMPP
#2

Hi, in case you didnt make any other errors in controller,  check the ajax call in your view:
kdkfkk
PHP Code:
function loadPagination(pagno){
 
      $.ajax({
 
        url'/post/loadRecord/'+pagno,
 
        type'get' 

The url will be your problem. Try it with a full url:
url : 'http://localhost/ci-pag/post/loadRecord/'+pagno
(also it is a good idea to open the url directly). 
If it works check Codeigniter constants for get your CI urls in all cases.
Reply


Messages In This Thread
RE: Codeigniter Pagination with AJAX JQuery on XAMPP - by lpeter - 02-10-2019, 11:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB