I have tested iframe solution like:
jQuery(document).ready(function()
{
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
obj.style.width = obj.contentWindow.document.body.scrollWidth + 'px';
}
}
);
and
<iframe sandbox='allow-scripts allow-same-origin' onload='javascript:resizeIframe(this); src='myfile.php'></iframe>
When I see tested page it will not resize. How to solve this auto height/width in the case of iframes?
Need help.