2009/1/22 Ricardo Tomasi <ricardob...@gmail.com> > > 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. >
The function called for "each()" doesn't make animations ; it's looking for cells in a big table and, according to a few conditions, is changing their classes ; the whole operation takes from 10 to 20 seconds. What I just want is to display a small GIF animated image while my javascript loop is executing. It works fine when doing an asynchronous Ajax call, but here the loop is only working with the local HTML page. Image display is "nearly OK" but as soon as the loop is beginning, the GIF image is frozen :-( Thanks for any idea, Thierry