• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter Pagination with AJAX JQuery on XAMPP

#4
@lpeter

hello!

"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)."

yes that was the issue, now it works.

But ...

one more kind hint

The situation is

now I develop locally my experiment and one day I move it to a real hosting service

If now I tweak this file and maybe many more

It will be an issue to modify them back

So the kind/tip hint request is

- how to manage this with some sort of automatism?

is that matter of the constants you mention?

If yes, kindly, which one do you mean?

maybe the $config['base_url'] = 'http://localhost/ci-pag/'; in the config.php

or someone to add into the constants.php file?

or really I should leave that

url : 'http://localhost/ci-pag/post/loadRecord/'+pagno

and do the same in all the views files and later modify all of them (either I suppose the solution will be much smarter)

Thank you
Cor


@richb201
Thank you for replying

yes that is a piece of javascript JQuery related

May I kindly ask you if you mean the console viewer in the Chrome browser or something else? ( Please understand that I'm trying to dive into some advanced javascript and php programming instead than my old little php procedural experience, so thank you for hinting ).

About debuggin I've installed composer and with composer, I'm going to install whoops. Do you think it could be good as well as PHP debugger? Or the one you mentioned has something dedicated to CodeIgniter?
I ask that because I don't own a PHPStorm license

Instead I was using SublimeText and now I'm experimenting with a little of surprise with Visual Code Studio which is an unexpected free IDE program from Microsoft ( are they becoming philanthropists !?!?!? Angel )

Thank you for some advices
Cor
Reply


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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