jquery div contents real width
<p>i have a div tag</p>

<pre><code>&lt;div id="openfrag"&gt;
 &lt;script language="JavaScript" src="http://ad.uk.doubleclick.net/adj/BA_HOME/HP_Public_MSB; dcopt=ist;sz=728x90,468x60;tile=1;lan=en;ord=1265795605?" type="text/javascript"&gt;&lt;/script&gt;
&lt;/div&gt;
</code></pre>

<p>above script tag is third party url that may returns either image or flash object or any other of any size..
how to determine dynamic  width and height occupied by div tag using jquery ?</p>

<p>i tried $("#openxfrag").width()   ,but it always return the same  width that is defined in css</p>
