<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - Iframe integration]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/21306/"/>
	<updated>2009-03-14T15:59:43Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/21306/iframe-integration/</id>
		<entry>
			<title type="html"><![CDATA[Iframe integration]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/125644/#p125644"/>
			<content type="html"><![CDATA[<p>I&#039;ve integrated punBB 1.3 forum into iframe on my site - this works fine, however<br />I would like also the iframe to dinamically resize only height when navigating trough forum.</p><p>Currently I&#039;ve setup a light javascript:<br /></p><div class="codebox"><pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
    function resizeFrame(f) {
        alert(&quot;tesr&quot;);
        f.style.height = f.contentWindow.document.body.scrollHeight + &quot;px&quot;;
    }
    resizeFrame(document.getElementById(&#039;forum&#039;));
&lt;/script&gt;</code></pre></div><p>Which does the job, but unfortunately it is called just once - when forum is loaded.<br />How could I possibly make it refresh height everytime something inside iframe changes?</p>]]></content>
			<author>
				<name><![CDATA[kriko]]></name>
				<uri>http://punbb.informer.com/forums/user/15073/</uri>
			</author>
			<updated>2009-03-14T15:59:43Z</updated>
			<id>http://punbb.informer.com/forums/post/125644/#p125644</id>
		</entry>
</feed>
