pklauzinski / jscroll

An infinite scrolling plugin for jQuery.
http://jscroll.com/
1.11k stars 561 forks source link

I am loading with ajax the link that i want to use for jscroll . #138

Open annapetrai opened 7 years ago

annapetrai commented 7 years ago

Jscroll does not work when I load with ajax my content.Can the problem be that I am loading the link with the ajax results.I am trying to filter my results and send them via ajax request inside a div then I want to be able to scroll.

pklauzinski commented 7 years ago

If the content you want to initialize the scroll on is loaded via AJAX, then you need to be sure to initialize jScroll on the div after it has been loaded.

annapetrai commented 7 years ago

The div that I am using as the ajax container is used as the jscroll container after loading the content I called the jcroll but still not working.

annapetrai commented 7 years ago

When I click a filter it populates with ajax a div after the load function I call the jscroll function it seems that trough the debugger is called correctly but no result.

annapetrai commented 7 years ago

My solution promises and deffered objects.