• Hello,

    I’m testing out the infinite scroll plugin (https://www.infinite-scroll.com/) on a blog homepage that features the yahoo media player plugin. After the first page of posts, the new pages that are loaded are not initializing this plugin. I have tried adding “YAHOO.MediaPlayer.addTracks( this );” to the “Javascript to be called after the next posts are fetched” area of the infinite scroll plugin, however it hasn’t fixed the problem.

    Has anyone come across this problem and found a solution?

    Thanks!

Viewing 1 replies (of 1 total)
  • Hmm the (this) part probably won’t work as the javascript callback is called from an isolated function (meaning that “this” will refer to just the function). Perhaps try something like:
    YAHOO.MediaPlayer.addTracks( window );
    or
    YAHOO.MediaPlayer.addTracks( window.document );

Viewing 1 replies (of 1 total)
  • The topic ‘Infinite Scroll Plugin Breaks Yahoo Media Player Links’ is closed to new replies.