Reputation: 488
Is that possible to use jQuery plugin like Infinite Ajax Scroll to load content which is dynamically created with JavaScript ?
Thank you.
Upvotes: 2
Views: 1303
Reputation: 450
The answer to your question would be "Yes, it is possible".
Please read the guidelines on how to post appropriate question, so you can get the best of the community.
The plugin has extensive documentation, I'd advise you read it first.
https://github.com/webcreate/Infinite-Ajax-Scroll#readme
And demos:
View the source code on the demos to get a better explanation how to use it.
Upvotes: 0
Reputation: 861
this is base
$(window).scroll(function(){
if($(this).scrollTop()+$(this).height() == $("body").get(0).scrollHeight){
// call function
}
})
Upvotes: 3