Forums

Infinite Scroll Plugin Breaks Yahoo Media Player Links (2 posts)

  1. foochuck
    Member
    Posted 10 months ago #

    Hello,

    I'm testing out the infinite scroll plugin (http://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!

  2. beaver6813
    Member
    Posted 9 months ago #

    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 );

Reply

You must log in to post.

About this Topic