IE animation on a dead page

Maurits

Hold ∞ in the palm of your hand [B̲̅l̲̅a̲̅k̲̅e̲̅]
Posted by Maurits // Fri, Apr 14, 2006 8:22 PM

I have a search page that posts to a results page.

Sometimes the results page takes a while to load.

So I requisitioned an animated GIF, whipped up some text animation javascript, and put an onsubmit event for the form that would show a nifty little "your search is processing" animation with text and graphics.

It works great.

Except in IE.

In IE, the animated GIF refuses to animate, while the text animates fine.

I can't decide whether this is really a "bug" though.  Is it reasonable to expect an image to continue animating while another page is loading?
  Rossj
  R'lyeh wgah'nagl fhtagn
 
  Mon, Apr 24 2006 5:04 PM
In IE you need to set the src attr on an element after the form has been submitted, as in ..

someform.submit();
setTimeout( 'someimage.src="urltoimage"', 200);


  Maurits
  Hold ∞ in the palm of your hand [B̲̅l̲̅a̲̅k̲̅e̲̅]
 
  Mon, Apr 24 2006 5:07 PM
Interesting.  I'll try that.


  Maurits
  Hold ∞ in the palm of your hand [B̲̅l̲̅a̲̅k̲̅e̲̅]
 
  Mon, Apr 24 2006 5:58 PM
Works great!  Thanks for the tip.


  OInter
 
 
  Tue, Apr 25 2006 1:38 AM
 Interesting. Thanks for the tip.



  Harlequin
  Do not feed the Trolls...
 
  Tue, Apr 25 2006 10:43 AM
Good timing, I need that for a project too :)

Does IE7 stop animations when a form is submitted as well? Wonder if it's a bug or a feature...