Support » Plugin: Infinite-Scroll » [Plugin: Infinite-Scroll] Javascript Callback Problem

  • I’m not sure if any of the original developers are still monitoring this support form, but any feedback would be greatly appreciated.

    My website can be found at: http://www.TooGoodForRadio.com
    I am using version 2.0b2.120226 of infinite-scroll
    My selectors are
    Content Selector: #content
    Posts Selector: #content
    Navigation Selector: div.navigation
    Next Page Selector: div.navigation .alignleft a:first

    The plugin is currently working as expected with only a few hiccups. When the page loads the new set of posts, several javascript elements on the newly generated sidebar don’t function. One of the elements is a twitter feed and the other is a jQuery that pulls a title from a SHOUTcast server.

    Upon inspection of the html code, the javascript reference calls to the external files are only generated at the first page load, not for any subsequent loads.

    The javascript calls are:

    <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
    		<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/<?php echo get_option('alltuts_twitter_user'); ?>.json?callback=twitterCallback2&count=<?php
    		if(get_option('alltuts_number_tweets')!=""){
    			echo get_option('alltuts_number_tweets');
    			}else{
    				echo "1";
    			} ?>"></script>

    AND

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://240891823.r.professionalcdn.com/jquery.shoutcast.easy.min.js?host=delicious.wavestreamer.com&port=3212&stream=1"></script>

    I tried placing these calls outside of the #content selector, but they need to be within the <body> of the page to function.

    Is a fix able to be done with the java callback function in infinite scroll? If so, I don’t properly understand how to use this feature.

    Any help would be greatly appreciated! Thanks in advance.

    PS – I tried updating to version 2.5 on github and it caused errors with my native wordpress media library.

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

Viewing 1 replies (of 1 total)
  • Hi,
    did you succeed in fixing your problem ? because I posted a similar topic yesterday and I need to find a solution quickly.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Infinite-Scroll] Javascript Callback Problem’ is closed to new replies.