jquery-endless-scroll icon indicating copy to clipboard operation
jquery-endless-scroll copied to clipboard

When using callback function, it only calls once.

Open nffdiogosilva opened this issue 11 years ago • 3 comments

$("#events").endlessScroll({
                inflowPixels: 100,
                fireOnce: true,
                fireDelay: 10,
                callback: function(i, p, d){
                    console.log(i, p, d);
                }
            });

Any clue what might be?

Version is: 1.8.0

nffdiogosilva avatar Sep 06 '13 15:09 nffdiogosilva

If I change ceaseFireOnEmpty to false.... it keeps onGoing...

nffdiogosilva avatar Sep 08 '13 00:09 nffdiogosilva

Well, it's been over a year since I used the library I am not really sure. Perhaps give version 1.6 a try?

fredwu avatar Sep 08 '13 15:09 fredwu

I'm not sure, but i believe that the problem was that i was calling an ajax request inside the callback function.

It would receive JSON data , than i would append that data on the div. After that, the callback wouldn't work anymore.

Anyway, i have solved the problem, using my own code.

When i have the time, i'll do a jsfiddle replicating the problem.

nffdiogosilva avatar Sep 08 '13 16:09 nffdiogosilva