I bought the PRO version but my problems are still not solved. I am including a remote page where I have full control of the remote page. Still the IFRAME cuts the content and adds scroll.
On the main page I have this code:
Code:
[advanced_iframe use_shortcode_attributes_only="true" src="https://narin.biofokus.no/indexbio.lasso" id="narinbio" enable_responsive_iframe="true" enable_external_height_workaround="true" width="100%" height="800" url_forward_parameter="ALL" add_iframe_url_as_param="remote"]
On the remote page I have this code just before
Code:
</body>
.
Code:
<script>
var iframe_id = "narinbio";
var updateIframeHeight = "true";
var enable_responsive_iframe = "true"
var hide_page_until_loaded_external = "true";
var iframe_content_id = "#frame-content";
</script> <script src="https://dev.biofokus.no/wp-content/plugins/advanced-iframe/js/ai_external.js?vs=6"></script>
My structure on the remote page is:
#frame-content
#nav
#content
#right
/#frame-content
#right floats to the right. When I open the page the first time (
https://dev.biofokus.no/narin/), #content and #right are empty. But still #nav gets cut off at the bottom and the IFRAME is 412px height. Don't know where that comes from. Sometimes the page shows correct. On the next page refresh everything is wrong again!
When I send in parameters I want the tallest of #content or #right to decide the IFRAME height. How do I do that. Check here:
Show one post:
https://dev.biofokus.no/narin/?nid=4229 Show a free search:
https://dev.biofokus.no/narin/?fritekst=myr The problem is It suddenly works but usually fails with the height. It is important that one can do a search and the iframe adjusts height to the content.