hi
i want to show/hide a loader when using load() function. With this
script:

$('#load')
        .ajaxStart(function() { $(this).show(); })
        .ajaxStop(function() { $(this).hide(); });
$('#colCont').load('myFile.php?id=myId #colContIns');
$('#categorie a').click(function(){
                                        $('#categorie 
a').removeClass('selected');
                                        $(this).addClass('selected');
                                        var id = $(this).attr('id');
                                        var s = new Array();
                                        s = id.split('_');
                                        
$('#colCont').load('prodotti/famiglie.php?id='+s[1]+'
#colContIns');
                                        return false;
});

the loader shows only on its first call but not when i load html
fragments from links.
Any idea why?
Thanks Vitto


Reply via email to