Forum Moderators: open

Message Too Old, No Replies

GIF Animation stops of form submit in IE (firefox works fine)

         

darkage

11:26 am on Aug 23, 2006 (gmt 0)

10+ Year Member



As subject, when the form is submitted (file upload) i display an progress bar image (hidden image becomes visible), but the image is not animated.

After some googling it seems that IE stops animating the Gifs when a request is sent.

So what is the workaround?

thanks.

here is the code (unecessary html code removed):
<div id="uploadprogressbar" style="display:none"><img src="images/progressbar.gif"></tr>

<input name="filename" type="file" />&nbsp;<input type="submit" name="upload" value="Upload Image" onClick="document.getElementById('uploadprogressbar').style.display='';" />

encyclo

1:57 am on Aug 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could try a workaround with the proprietary IE onbeforeunload [msdn.microsoft.com] attribute - this may let the GIF remain animated in IE. I haven't tested this, however. :)

An example on the

body
element would be:

<body [b]onbeforeunload="document.getElementById('uploadprogressbar').style.display='';"[/b]>