Javascript: How to fix stopped animated gif after submit a form in IE

There is a known limitation in IE where the animated gif will stop animate after submit a form. This would give a problem to us if we have a situation where we want to show a loading image while waiting for the process to complete and it's non-ajax.

Below is the solution and it works in IE, FF and Chrome:
javascript:
function showIndicator() {
   var pb = document.getElementById("loading_image");
   pb.innerHTML = '';
   pb.style.display = '';
}
html:


source : http://stackoverflow.com/questions/780560/animated-gif-in-ie-stopping

1 comments: