Quote:
Originally Posted by DanInMa
like from a specific element from a resulting page? when you specify the url also include an element id and you can get content from jsut the element with that id
example url: "/mypages/mypage.php #myelement"
|
How would that look in context?
Code:
alreadyloading = false;
nextpage = 2;
$(window).scroll(function() {
if ($('body').height() <= ($(window).height() + $(window).scrollTop())) {
if (alreadyloading == false) {
var url = "page"+nextpage+".html";
alreadyloading = true;
$.post(url, function(data) {
$('#galleryThumbsCol').children().last().after(data);
alreadyloading = false;
nextpage++;
});
}
}
});