-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
I am having an issue where your scroll is continuing to load the page without interaction from the screen.
<script type="text/javascript"> $(function(){ var feeds = $("#feeds ul"); var last_time = feeds.children().last().data('id'); feeds.scrollFeedPagination({ 'contentPage': '/ajax_results.cfm?ajax_type=get_site_feed', 'contentData': { 'last_time' : last_time, 'f_member_id_recipient': '5', 'use_feed_type' : '1,2,3,4,5,6,7,9,12,13,14,15,16,17,18,19,20,21,22', 'use_class_id' : '1,2,3,4' }, 'heightOffset': 300, 'scrollTarget': $(window), 'beforeLoad': function(){ $('.loading').fadeIn(); }, 'afterLoad': function(elementsLoaded){ last_time = feeds.children().last().data('id'); feeds.scrollFeedPagination.defaults.contentData.last_time = last_time; $('.loading').fadeOut(); var i = 1; $(elementsLoaded).fadeIn(); } }); $.fn.fadeInWithDelay = function(){ var delay = 0; return this.each(function(){ $(this).delay(delay).animate({ opacity:1 }, 200); delay += 100; }); }; //calling the function to update news feed setTimeout('updateFeed()', 1000); }); /** * Function to update the news feed **/ function updateFeed(){ var id = 0; id = $('#feeds li:last').data('id'); $.ajax({ 'url' : '/ajax_results.cfm?ajax_type=get_site_feed', 'type' : 'POST', 'data' : { 'latest_news_time' : id, 'f_member_id_recipient': '5', 'use_feed_type' : '1,2,3,4,5,6,7,9,12,13,14,15,16,17,18,19,20,21,22', 'use_class_id' : '1,2,3,4' }, success : function(data){ setTimeout('updateFeed()', 1000); if(id != 0){ $(data).appendTo("#feeds ul"); } } }) }; </script>Metadata
Metadata
Assignees
Labels
No labels