The JS script:
function ShowUploadingAnimation()
{
$('#info_msg').html("<div style=\"padding-top: 15px; height: 50px;\" align=\"center\"><img id=\"uploading-img\" /></div>");
$("#uploading-img").attr({ src: "images/uploading.gif", alt: "Uploading" });
}
And the html usage:
<input type="submit" value="Upload" onclick="ShowUploadingAnimation();">
<div id="info_msg"></div>
So my issue is the following: This method works ok in Firefox, but in Internet Explorer the gif file is loaded, but it's not animated, just static... showing only a random frame each time the button is clicked. Any suggestions?