Ocean West Posted January 1, 2022 Share Posted January 1, 2022 I am doing some automated posts to a forum via the API and the body is going to be an iframe is there a way to have the height of the iframe adjust automatically to the source? SeNioR- 1 Link to comment Share on other sites More sharing options...
Marc Posted January 4, 2022 Share Posted January 4, 2022 I have moved this to our developer forum, as this isnt really a support question here. Link to comment Share on other sites More sharing options...
Solution Jimi Wikman Posted January 5, 2022 Solution Share Posted January 5, 2022 On 1/1/2022 at 11:33 PM, Ocean West said: I am doing some automated posts to a forum via the API and the body is going to be an iframe is there a way to have the height of the iframe adjust automatically to the source? Not unless you somehow can provide the content height with the content. Basically what you do is add a hole in your site and place some content behind that hole. The size of the hole will be whatever you set on your site. Whatever happens on the other side of that hole is out of your control. If you want, you can try to use JavaScript to manipulate the iframe. My experience with it is not so great, but there are some solutions that might work for you. This might be a starting point:https://stackoverflow.com/questions/49253341/how-to-make-iframe-100-height-according-to-its-content Ocean West and opentype 2 Link to comment Share on other sites More sharing options...
Recommended Posts