ajax - php - infinite scroll load next results page xml -
ajax - php - infinite scroll load next results page xml -
i'm working on website fetch items api in xml format. have created php page parse xml api call, , take $pagenumber variable fetch info accordingly. here site link: http://phantom-3.com/resindex2.php?u=car-parts-wholesale
inside page calling resindex-items.php?pagenumber=1 xml parsing script display product results.
i add together infinite scroll on each scroll fetch's each consecutive page.
resindex-items.php?pagenumber=1 resindex-items.php?pagenumber=2 resindex-items.php?pagenumber=3 please forgive ignorance, ive been coding 1 month.
i understand have utilize jquery , ajax update div. have no clue how implement actual code.
your question isn't clear. want utilize javascript, when scroll downwards it'll fire event phone call ajax append in homecoming div.
something should work.
$(window).scroll(function () { if ($(window).scrolltop() >= $(document).height() - $(window).height() - 10) { .load('stuff.php',{},function(){ $(this).append('<div id=\"text\"></div>"); }); } }); php ajax xml scroll
Comments
Post a Comment