php - Iframes not loading in Firefox -
i have web page multiple iframes. these ifrmaes trying load web forms. problem is, these forms not loading in firefox working fine in ie8 , chrome.
any idea abut problem ?
following fragment of code. is, creating multiple iframes dynamically.
foreach ($references $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'; }
Comments
Post a Comment