Iframes not loading in Firefox
<p>I have a web page with multiple iframes. These ifrmaes trying to load some web forms.
My problem is, these forms are not loading in Firefox but working fine in IE8 and chrome.</p>

<p>Any idea abut this problem ?</p>

<p>Following is the fragment of code. What it does is, creating multiple iframes dynamically.</p>

<pre><code>            foreach ($references as $key =&gt; $reference) {

                    &lt;iframe scrolling='no' onload='javascript:resizeIframe(this);' id="refForm_&lt;?php echo $reference-&gt;getRecruitmentReferenceFormData()-&gt;getId(); ?&gt;" style="display:block;margin-left:auto;margin-right:auto;" src="&lt;?php echo url_for('recruitment/viewReferenceForm') . '?id=' . $reference-&gt;getRecruitmentReferenceFormData()-&gt;getId(); ?&gt;" id="rightMenu" name="rightMenu" height="1000px" frameborder="0"&gt;&lt;/iframe&gt;

                &lt;?php
            }

function resizeIframe(obj)
{
    var size = obj.contentWindow.document.body.offsetHeight;
    size = size + 900;

    obj.style.height = obj.contentWindow.document.body.offsetHeight + 'px';
    obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
    obj.style.width = obj.contentWindow.document.body.scrollWidth + 'px';  

}
</code></pre>
