[solved]resize the iframe in child frame [IE 8]
<p>The following script is placed in every child pages to resize the iframe included in parent frame, but this only work for chrome, not in IE 8, any one knows the problem? </p>

<pre><code>&lt;script&gt;
     function resizeIframe(dynheight) {
            try {
                var f =  parent.document.getElementById("content");
                parent.document.getElementById("content").height = parseInt(dynheight);
                if (f.contentDocument) {
                    f.height = f.contentDocument.documentElement.scrollHeight; //FF 3.0.11, Opera 9.63, and Chrome

                } else {
                    f.height = f.contentWindow.document.body.scrollHeight; //IE6, IE7 and Chrome

                }
            }

            catch (err) {
                alert('Err: ' + err.message);
                window.status = err.message;
            }
        }

        window.onload = function() {
            var height = document.body.scrollHeight;
            resizeIframe(height);

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