The accepted solution did not work for me.
After some more research I came across this workaround, and it actually does work.
Here is the gist of it:
function showProgress() {
var pb = document.getElementById("progressBar");
pb.innerHTML = '<img src="./progress-bar.gif" width="200" height ="40"/>';
pb.style.display = '';
}
and in your html:
<input type="submit" value="Submit" onclick="showProgress()" />
<div id="progressBar" style="display: none;">
<img src="./progress-bar.gif" width="200" height ="40"/>
</div>
So when the form is submitted, the <img/>
tag is inserted, and for some reason it is not affected by the ie animation issues.
Tested in Firefox, ie6, ie7 and ie8.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…