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

(This post was last modified: 02-12-2019, 12:03 AM by Corsari.)

(02-10-2019, 11:40 AM)lpeter Wrote: 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.

Hello I have replied you above :-)

and here I kindly ask you

how can be managed the "Codeigniter constants for get my CI urls in all cases" ?

Thank you
Reply


Messages In This Thread
RE: Codeigniter Pagination with AJAX JQuery on XAMPP - by Corsari - 02-12-2019, 12:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB