I want to know the easiest way of showing a 'loading' gif to a specific jquery ajax request.
i have tried:
$(document).ajaxStart(function() {
$('.hideOnLoad').hide();
});
$(document).ajaxStop(function() {
$('.hideOnLoad').show();
});
but then ALL ajax requests will trigger it. i just want a specific jquery ajax request to trigger the loading process (maybe a gif will be shown).
how do i do that?