複数の iframe を含む Web ページがあります。これらの ifrmaes は、いくつかの Web フォームを読み込もうとしています。私の問題は、これらのフォームが Firefox では読み込まれないが、IE8 と chrome では正常に動作することです。
この問題に関するアイデアはありますか?
以下はコードの断片です。それは、複数の iframe を動的に作成することです。
foreach ($references as $key => $reference) {
<iframe scrolling='no' onload='javascript:resizeIframe(this);' id="refForm_<?php echo $reference->getRecruitmentReferenceFormData()->getId(); ?>" style="display:block;margin-left:auto;margin-right:auto;" src="<?php echo url_for('recruitment/viewReferenceForm') . '?id=' . $reference->getRecruitmentReferenceFormData()->getId(); ?>" id="rightMenu" name="rightMenu" height="1000px" frameborder="0"></iframe>
<?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';
}