• Resolved dlebret

    (@dlebret)


    How can I execute a javascript function after each ajax load page ?
    On the button click it’s easy but with the parameter “scroll” what to do?
    thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m looking for this as well. Are there any JS hooks defined?

    OK, I created a solution in my local plugin version, but I would like to propose this in a merge request. How does that work in SVN?

    Plugin Contributor Mahesh Maharjan

    (@maheshmaharjan)

    @dlebret
    @micksp
    Thanks for the suggestion. This will be available on the next update. Then you’ll be able to call custom function in afterScroll hook.

    Regards,
    Mahesh

    Thread Starter dlebret

    (@dlebret)

    I saw that the feature was available in the new update thank you very much.
    Do you have any documentation or can you quickly show me how to use this function?

    thanks

    Plugin Contributor Mahesh Maharjan

    (@maheshmaharjan)

    @dlebret

    Its simple, hook any function to afterScroll hook.

    // Add an event listener
    document.addEventListener('afterScroll', function () {
    	console.log('Fires after scroll');
    });

    Hope this helps.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Event js after new load’ is closed to new replies.