[jQuery] Display GIF animation during jQuery loop

[jQuery] Display GIF animation during jQuery loop


Hi,
I have a probably basic problem.
I actually want to display a simple GIF animation during a jQuery
function which actually takes a few seconds to run.
Basically, I do :
$('IMG.my_gif_animation').show();
try {
$('...').each(function() { ... }); // which takes a few seconds
} finally {
$('IMG.my_gif_animation').hide();
}
My problem is simple : the GIF image is correctly displayed but as
soon as the jQuery loop starts, GIF animation is stopped !
Any hint would be welcome...
Thanks,
Thierry
















    • Topic Participants

    • hello