• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.