Title: [Plugin: Infinite-Scroll] Javascript Callback Problem
Last modified: August 20, 2016

---

# [Plugin: Infinite-Scroll] Javascript Callback Problem

 *  [tk_421](https://wordpress.org/support/users/tk_421/)
 * (@tk_421)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/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](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/](http://wordpress.org/extend/plugins/infinite-scroll/)

Viewing 1 replies (of 1 total)

 *  [aguidis](https://wordpress.org/support/users/aguidis/)
 * (@aguidis)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-infinite-scroll-javascript-callback-problem/#post-3023411)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

## Tags

 * [alltuts](https://wordpress.org/support/topic-tag/alltuts/)
 * [callback](https://wordpress.org/support/topic-tag/callback/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [aguidis](https://wordpress.org/support/users/aguidis/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-infinite-scroll-javascript-callback-problem/#post-3023411)
 * Status: not resolved