php - autoload pagination not working been urls been cleaned through htaccess -


i using auto load pagination method on page , when using htaccess clean url pagination stops working , data not appear . if remove pagination method fine , or if remove htaccess works fine .

    <script src="js/jquery-1.11.1.min.js"></script> <script type="text/javascript">   var busy = false;   var limit = 10   var offset = 0;    function displayrecords(lim, off) {       $.ajax({       type: "get",       async: false,           url: "getresult.php",         data: "limit=" + lim + "&offset=" + off + "&city=<?php echo $_get['city'] ; ?>",          cache: false,        success: function(html) {         $("#results").append(html);         window.busy = false;       }     });   }    $(document).ready(function() {     // start load first set of data     if (busy == false) {       busy = true;       // start load first set of data       displayrecords(limit, offset);     }       $(window).scroll(function() {       // make sure u give container id of data loaded in.       if ($(window).scrolltop() + $(window).height() > $("#results").height() && !busy) {         busy = true;         offset = limit + offset;          // optional delay loading of data         settimeout(function() { displayrecords(limit, offset); }, 500);          // can remove above code , can use directly function         // displayrecords(limit, offset);        }     });    });  </script> 

this htaccess code :

    rewriterule ^city/([a-za-z0-9_-]+)/?$ eventlist.php?city=$1  


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -