2

Is that possible to use jQuery plugin like Infinite Ajax Scroll to load content which is dynamically created with JavaScript ?

Thank you.

2 Answers 2

3

this is base

$(window).scroll(function(){


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

})
Sign up to request clarification or add additional context in comments.

2 Comments

This is not what I want! I want my data load when I scroll part by part and not all at once, because in my case I am trying to handle hundreds of lines.
in this case, when you call the function that loads you send a LIMIT and OFFSET to carry the load according to the limit and offset.
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.