Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When i clicked on the Ajax Pagnavi and then the content of loading content is loaded, than works the jquery not, like tipsy or easing... also all the jquery within the Ajax Loading DIVS. The Code for the Pagnavi is:

    <script type="text/javascript">

    <!--//--><![CDATA[//><!--

    (function($){  

        $(function(){  

    jQuery('.pagenavi a, #next_previous a').live('click', function(e){

    e.preventDefault();

    var link = jQuery(this).attr('href');

    var height = jQuery('#post-entrys').height();

    jQuery('#post-entrys').fadeOut(500).load(link + ' #ajax-inner', function(){ 

jQuery('#post-entrys').fadeIn(500); });

     topoflist=$('.posts_entry').position();

       thetop=topoflist.top-250;    

    $('html, body').animate({scrollTop:thetop}, 400);}); 

    }); 

    })(jQuery) 

    //-->!]]>

    </script>

And for example the code for Jquery Easing is:

$(window).load(function() {



    $('.entry-tags .tag').each(function(i) {

            setTimeout(function() {
                $('.entry-tags .tag:eq('+i+')').css({ display: 'block', opacity: 0 }).stop().animate({ opacity: 1 }, 'easeInOutQuad'); 
            }, 250 * (i + 1))
        });

        $('.entry-tags .tag').hover(function() {
            $(this).stop().animate({ paddingRight: ($('span.tag_count', this).outerWidth() - 5) }, 'easeInOutQuad');
        }, function() {
            $(this).stop().animate({ paddingRight: 5 }, 'easeInOutQuint');
        });

    });

And its work also, but when the site refresh then goes nothing. Thanks for the help. How can i reload the Jquery function after the site is refresh?

share|improve this question
I solved the problem with live.jquery. – jamal Dec 12 '12 at 2:46

closed as off topic by Chip Bennett, s_ha_dum, brasofilo, toscho Apr 9 at 3:33

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

/*******ajax pagination*******/
jQuery(document).on('click', '#pagination a', function(e){  
  e.preventDefault();  
  var link = jQuery(this).attr('href');  
  jQuery('#content').html('Loading...');  //the 'main' div is inside the 'content' div
  jQuery('#content').load(link+' #main');
}); 

is the code I used for wordpress pagination. See if you can convert the 'live' calls to 'on' calls as the .live() function has been depreciated.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.