hi
i want to show/hide a loader when using load() function but
using .ajaxStart / .ajaxStop functions doesn't work. Is it right?

With this script:

$('#load')
        .ajaxStart(function() { $(this).show(); })
        .ajaxStop(function() { $(this).hide(); });
$('#colCont').load('myFile.php?id=myId #colContIns');
$('#categorie a').click(function(){
                                       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 other links.
Any idea?
Thanks VItto

Reply via email to