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
|
|
|
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̲̅]
|
|
|
Interesting. I'll try that.
|
|
Maurits
Hold ∞ in the palm of your hand [B̲̅l̲̅a̲̅k̲̅e̲̅]
|
|
|
Works great! Thanks for the tip.
|
Interesting. Thanks for the tip.
|
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...
|
|
|