Topic: Prevent JQuery's Effect for normal request ?

Hi,

I would like to apply some JQuery's effects(fadeIn,fadeOut) in my site while page is loading.
So i tried below code.when i clicking normal request,code is working fine

$(function(){
    $('body').hide().fadeIn('fast');
    $('a').click(function(){
        var link = $(this).attr('href');
        $('body').fadeOut('fast', function(){
            window.location.href = link;
        });
        return false;
    });
});

But i had problem only when i clicking ajax link.
So i planned to avoid above effects for ajax request.

How to set above effects only for normal request ?

Last edited by willm (2010-07-09 09:05:26)