Help in converting vanilla PHP to CI (AJAX + filter + infinity scroll) |
I'm trying to convert this PHP tutorial to CI Product Ajax Search Filter With Infinite Scroll More Using PHP And Mysqli. But so far, no luck. I "think" my problem is the Javascript code, specially this part.
Code: $.get("autoload.php?group_no="+total_record+"&brand="+brand+"&material="+material+"&size="+size, I don't know how to make this JS code CI friendly. I tried something like this, but it didn't work. Code: $.get(baseURL+'/index.php/home/filtered'+group_no="+total_record+"&brand="+brand+"&material="+material+"&size="+size) I'm after a kind of AJAX search/checkboxes filter with infinite scroll, but I found none implemented in CI. So, I'm trying to convert this tutorial to CI. Any tips or suggestions on how to do this? Regards, Castle
https://www.codeigniter.com/user_guide/g...ur-methods
Code: $.get(baseURL+'/index.php/home/filtered/'+total_record+'/'+brand+'/'+material+'/'+size) PHP Code: <?php PHP Code: <?php Code: $.ajax({ |
Welcome Guest, Not a member yet? Register Sign In |