jquery dialog does not show CSS style on load in Internet Explorer
<p>I have a jQuery dialog which loads an external php page. All is working fine except in Internet Explorer (8) the css is switched on and then off again when the dialog is loaded.  This means the dialog is transparent! 
When I drag the dialog the style is applied again, and it keeps applied.</p>

<p>This the dialog load method.</p>

<pre><code>&lt;script&gt;
        $(document).ready(function() {

            //select all the a tag with name equal to modal
            $('a[name=eventform]').click(function(e) {
                //Cancel the link behavior
                e.preventDefault();

                $("#dialog").load(e.target.href).dialog({
                    title : 'Activity'
                });

            });

        });
    &lt;/script&gt;
</code></pre>

<p>And this is the external page. All works fine in Firefox but the style is removed somehow when loading in Internet Explorer.</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;&lt;?php echo $pgtitle ?&gt;&lt;/title&gt;

    &lt;script type="text/javascript" src="js/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="js/jquery-ui-1.8.21.js"&gt;&lt;/script&gt;
    &lt;link rel="stylesheet" type="text/css" href="calendar/css/popwin.css" /&gt;


    &lt;/head&gt;
&lt;body&gt;
          ......
</code></pre>

<p>I tried to use the @import to get the stylesheet but this makes no difference.</p>

<p>The same issue appears on Internet Explorer 9 but there it happens sometimes (????).</p>

<p>Thanks,
Coen</p>
