I have a project that is loading in replies to a post through a js function:
$('div.discussion_content').each( function() {
discussion.loadDiscussion($(this));
});
It manages to work great on page-load, but we have an 'infinite scroll' on the page and as I scroll down to get more content (and therefore more discussions), I get nothing.
I have tried the .on() jQuery function ... but on what? I want to call this function immediately upon the element loading and have tried .on('load' ... ) to no avail.
I have tried the .livequery() plugin ...
$('div.discussion_content').livequery(function() {
discussion.loadDiscussion($(this));
});
Also to no avail.
What I want can't possibly be impossible, or even uncommon ... but I find myself suck without knowing a solution.