We have Wix pages which include dynamically generated product list data from an external site (which I also control), through an I-frame. The length of the list data varies as you navigate within the I-frame, and so I’d like the I-frame height to dynamically follow the sub-document height, to avoid a double scroll bar or huge gaps before the footer.
I could do this easily in standard JavaScript - even across domains with judicious use of postMessage() - but it seems Corvid blocks any access to that level.
Is there a solution?
[This has been asked before by others, but closed:
Currently, it is not possible to write code that would adjust the height of the HTML iFrame element depending on the dynamic content is being pulled into it.
You can try to see if the website that you are pulling the information from can allow you to make some API calls from your Wix site to pull the information in to your site without the use of the iFrame. If you would like to try this method, take a look at the tutorial here to see how to use the fetch API to accomplish this.