Mils
Mils

Reputation: 488

Load content created dynamically where scrolling using jQuery

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

Answers (2)

Vinny Fonseca
Vinny Fonseca

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:

http://www.fieg.nl/ias-demo

View the source code on the demos to get a better explanation how to use it.

Upvotes: 0

Tuyoshi Vinicius
Tuyoshi Vinicius

Reputation: 861

this is base

$(window).scroll(function(){


if($(this).scrollTop()+$(this).height() == $("body").get(0).scrollHeight){  
// call function 
}

})

Upvotes: 3

Related Questions