Edwin

Customer
I use iframe for Wikipedia but it doesn't fit the whole page.
The width is 100% and okey, but it doesn't work for the height.

https://www.sjedbb.com/threads/lijst-met-giftige-planten.223/

This is the code:
Code:
<iframe src="https://nl.wikipedia.org/w/index.php?title={$id}&printable=yes" scrolling="yes" frameBorder="0" height="1350" width="100%"></iframe>
Anyone a suggestion how to set the height to 100%
 

Edwin

Customer
Sorry for the delayed response... I went looking for a method when you first posted and ended up having to step away, forgot to respond!

The only way I'm seeing on how to do it would be javascript:

https://stackoverflow.com/questions...eight-according-to-the-contents-without-using

You can use our custom JS template add any code:

xb_custom_js_head // xb_custom_js_body
That doesn't work, now I got a small view.
Code:
<iframe src="https://nl.wikipedia.org/w/index.php?title={$id}&printable=yes" scrolling=" no" frameBorder="0" onload="resizeIframe(this);"></iframe>
xb_custom_js_head code:
Code:
<script>
  function resizeIframe(obj) {
    obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
  }
</script>
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.