First of all, I want to say that my code works in IE8 and Google Chrome. It is only in Firefox that I have a problem, tested it under Ubuntu and Win XP with the same problem with FF.
I am trying to display an ajaxloader gif as I refresh the page. At the very beginning, I use the jquery.ready () function to hide the div # update, which will display the image. When we click the update link, I show the div # update. My problem is that ajaxloader.gif does not rotate as if it should be a fix. But as mentioned, it works under chrome and IE.
Any idea why?
HTML:
<div id="refreshing">Refreshing</div> <a href="javascript: refreshPage();">Refresh</a>
CSS
#refreshing { font: 14px Verdana,Arial; color: #00264b; background: url("/med/base/img/ajax-loader-blue.gif") center no-repeat; }
JavaScript:
$(document).ready( function() { // hide the ajax loader $("#refreshing").hide(); } ); function refreshPage() { $("input").attr("disabled", "disabled"); $("select").attr("disabled", "disabled"); $("img").attr("onclick", ""); $("a").attr("href", "#"); window.location.href = window.location.href; $("#refreshing").toggle(); }
Another thing is that firefox config image.animation_mode is set to normal. Plus, if I look under firebug, the image will be animated.
Thanks to everyone.
source share