jQuery - IE7 does not animate gif in modal dialogue
<p>I have an animated gif that lets the user know a page is loading.  The GIF does not animate in IE7.  After some troubleshooting I know the problem can be caused by</p>

<ul>
<li>Preload event loading images in
body tag (not the case). </li>
<li>An IE
Setting in Tools > Internet Options >
Advanced tab > Multimedia section >
"Play animations in webpages*" should
be checked.  It is checked</li>
</ul>

<p>.</p>

<p>The GIF still does not animate.  I created a webpage.  <br /><br /><strong>This animates in IE7:</strong></p>

<pre><code>&lt;div&gt;
    &lt;img src="images/ajax-loader.gif" alt="Loading..." /&gt;
&lt;/div&gt;
</code></pre>

<p><hr />
This does <strong>not</strong> animate in IE7</p>

<p><em>jQuery</em></p>

<pre><code>                $('.searchButton').click(function () {
                    $("#divLineItemComments").dialog("open");
                });
</code></pre>

<p><em>ASP.NET</em></p>

<pre><code>&lt;asp:Button ID="searchBtn" Text="Search" class="search_btn searchButton" 
                                    runat="server" onclick="searchBtn_Click"  /&gt;

            &lt;div id="divLineItemComments" style="display:none;clear:both;text-align:center;"&gt;
                &lt;div&gt;                    
                    &lt;img src="images/ajax-loader.gif" alt="Loading..." /&gt;
                &lt;/div&gt;
            &lt;/div&gt;
</code></pre>

<p><em>ASP.NET Code Beside</em></p>

<pre><code>protected void searchBtn_Click(object sender, EventArgs e)
{
    Thread.Sleep(2000);//simulate work
    Response.Redirect("Animate.aspx");//redirect back to current page to complete POST
}
</code></pre>

<p><hr />
Dropping the dialogue code out entirely and instead using div.Show() also fails</p>

<pre><code>                $('.searchButton').click(function () {
                    $("#divLineItemComments").show();
                });
</code></pre>

<p>So this tells me the issue is most likely with jQuery.  The issue occurs in IE7, not firefox 4.  How can I fix it?  Maybe jQuery pre-loads images in the background...I dunno..?</p>
