The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Javascript wont load after infinite scroll (2 posts)

  1. Waqas
    Posted 3 years 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:

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

    any help?


  2. Glenn Nelson
    Plugin Author

    Posted 3 years 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

  • Infinite-Scroll
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic