Skip to content
Advertisement

Django. Infinite Scroll on Scrollable Table is not working

I have an scrollable table in one of my templates defined like this:

JavaScript

And my view is defined like this:

JavaScript

So, I followed the tutorial posted on here, but when I get to the table bottom, nothing happens.

I don’t get why is not loading the rest of the data when I get to the ‘waypoint’. Any suggestion or new solution for this it would be appreciated.

Thanks.

Advertisement

Answer

Try putting your var infinite = new Waypoint script after the html <tbody class="infinite-container">

Currrently, when it is called, the element of that class hasn’t been created yet.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement