i have long foreach load in steps user scrolls down (infinite scroll), i've searched solution , did not found way that.
my code resembles this:
foreach ($multi_array $key=>$value){ echo $value[0]."<br />"; echo $value[1]."<br />"; echo $value[2]."<br />"; echo $value[3]."<br />"; echo $value[4]."<br />"; .... } the result long , include infinite scroll instead of tradition pagination.
i know effect has done in javascript , allready tried jquery waypoints, but, reason, couldn't work.
you can't "scroll" php. php lanugage evaluated on server. client (who can scroll) never see php. if want scroll, you'd have use javascript.
one approach javascript load contents ajax-requests. link has been posted in comments start: infinite scrolling within ajax-loaded page
Comments
Post a Comment