ручной триггер с бесконечной прокруткой

Просто не работает... :-( Видел больше жалоб на это, но не могу найти ответ.

Проблема: Бесконечная прокрутка работает, но не ручной триггер. Когда я нажимаю на ссылку, ничего не происходит. Firebug дает

Infinite Scroll

Мой код:

    '); ?>
query('paged='.$paged.'&cat=5&showposts=3&meta_key=video_video&orderby=meta_value&order=ASC'  . $post->ID);
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
ID, 'video_video', true) ) : ?>
    
  • 290, "w" => 380, "zc" => 1, "q" =>100); //echo get('video_video'); echo ('With: '); echo get('participant_first_name'); echo (' '); echo get('participant_last_name'); echo ('
  • ');?> ID, 'video_video', true) ) { ?> max_num_pages > 1) : ?>

    There are no interviews at the moment

    И мой скрипт:

    jQuery('ul#infinite').infinitescroll({ 
        navSelector  : "#next",  // selector for the paged navigation (it will be hidden)
        nextSelector : "#next a",   // selector for the NEXT link (to page 2)
        itemSelector : "ul#infinite li",  // selector for all items you'll retrieve
        errorCallback: function() { 
              // fade out the error message after 2 seconds
              $('#infscr-loading').animate({opacity: 0.8},2000).fadeOut('normal');   
            },   
        loading         : {
             msgText: "Loading the next year of Grantees...",
            finishedMsg: "You've reached the end of the Interviews."
        },
      });
    
      //kill scroll binding
        jQuery(window).unbind('.infscr');
        //setTimeout("jQuery('#next').slideDown();", 1000);
         //hook up the manual click guy.
    
        jQuery('#next a').click(function(){
            jQuery('#next a').infinitescroll('retrieve.infscr');
         return false;
        });
    

    также пробовал

    jQuery(document).trigger('retrieve.infscr');
    

    вместо

    jQuery('#next a').infinitescroll('retrieve.infscr');
    

    , но безуспешно.

    Затем Firebug сообщаетtrigger(retrieve.infscr) вызван неправильно

    14
    задан Zuul 26 May 2012 в 00:15
    поделиться