Support » Plugin: Infinite-Scroll » Javascript wont load after infinite scroll

  • Waqas

    (@muhammadwaqas)


    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/

Viewing 1 replies (of 1 total)
  • Plugin Author Glenn Nelson

    (@glenn-nelson)

    @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.

Viewing 1 replies (of 1 total)
  • The topic ‘Javascript wont load after infinite scroll’ is closed to new replies.