Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi glennyboy,
    There is not an onComplete function. So what you want to do is fire a jQuery function after Ajax Load More has completed loading the posts?

    Thread Starter glennyboy

    (@glennyboy)

    That is correct. The jQuery currently can’t fire as the Ajax loads after the document is ready..

    Plugin Author Darren Cooney

    (@dcooney)

    Ok, Let me think a bit about this. I might be able to provide a callback function or something.

    isn’t there a general way to detect ajax loaded content with jquery so that we can attach functions/events to new content ?

    Plugin Author Darren Cooney

    (@dcooney)

    Yes, Mossill is correct.

    If you place the following code in your theme js document it will trigger after ajax load more has completed.

    $(document).ajaxComplete(function( event, xhr, settings ) {
       // Your complete function here
    });

    This assumes your theme JS is loaded after ajax load more.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Call jQuery Once Ajax Completes’ is closed to new replies.