WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
Javascript wont load after infinite scroll (2 posts)

  1. Waqas
    Member
    Posted 1 year ago #

    The problem is when the page first loads the elements of javascript appear but after infinite scroll triggers the next page, the javascript don't work

    my javascript looks like:

    <script>
        var urlo = encodeURIComponent('<?php the_permalink() ?>');
        document.write('<a target="_blank" rel="nofollow" href="http://mysite.com/?report=' + urlo + '"></a>');
    </script>

    any help?

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. Glenn Nelson
    Member
    Plugin Author

    Posted 1 year ago #

    @Wp Student

    If that is what you have in the callback field, it will not work as it includes both PHP and HTML. The field should contain only raw Javascript.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic