Creative interpretation of try/catch/finally! That's a construct meant
to catch errors, all it does in your code is catching any errors
thrown by each() and then running the finally block.

I guess your function in each() involves animations, right? Without
seeing the rest of the code it's hard to devise a solution.

On Jan 22, 9:40 am, Borax <tflo...@gmail.com> wrote:
> 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

Reply via email to