iframe sizing | XM Community
Solved

iframe sizing

  • 3 October 2018
  • 2 replies
  • 50 views

Userlevel 5
Badge +9
  • Level 2 ●●
  • 45 replies
Need some quick help from you coders out there.
I have a form on our website that is on the page using an iframe. The sizing isn't working properly on certain size phones. I was give the following code to make it respond, but it isn't working. Any ideas?

<script>
function resizeIframe()

{ var height = $('.embed-iframe iframe').contents().height(); $('.embed-iframe iframe').height(height); }
$(window).bind("load", function()

{ resizeIframe(); });
$(window).resize(function() { resizeIframe(); }
);
</script>
icon

Best answer by Ritz 3 October 2018, 23:37

View original

2 replies

Badge +1
@JenF , Follow this page
Userlevel 5
Badge +9
> @Ritz said:
> @JenF , Follow this page

Thank you - I will take a look and see if we can get it to work!

Leave a Reply