title: Dynamic iframe width not working in FF8/IE9
body: <p>I've been trolling Google for the past 4 days with no solutions. I know this has been discussed before, but I'm having some difficulty here.</p>
  
  <p>I am trying to resize an iframe's width on a parent page based on the content (same domain) within the child page. I wrote a little piece of code that works great in IE7/8. It also works in FireBug in FF8; however, it does not work in FF8 or IE9. Any help would be greatly appreciated.</p>
  
  <pre><code>&lt;iframe src="child.html" scrolling="no"&gt;&lt;/iframe&gt;
  &lt;script type="text/javascript"&gt; 
  var getWidth = $("iframe").contents().width();
  $("iframe").css("width", getWidth + "px");
  &lt;/script&gt;
  </code></pre>