Page 1 of 1

IFrame resizing not working

Posted: Sat Nov 04, 2017 12:37 pm
by aptsbcn
I tested the Iframe resizing following these instructions (https://wiki.beds24.com/index.php/Iframe_Resizing) and it worked about 2 weeks ago.
Now all of a sudden it doesn't work (in Wordpress).. I tested it in a few different settings (changing the wordpress theme, etc.) and it doesn't seem to work at all. Thanks for your help!

Re: IFrame resizing not working

Posted: Sat Nov 04, 2017 1:05 pm
by markkinchin
Check with the developer tools of your browser if there are any script errors on the page.
Otherwise please post a link to the page so we can see?

Re: IFrame resizing not working

Posted: Sat Nov 04, 2017 1:30 pm
by aptsbcn
Hi Mark, this is what happens: when I put the code on a page in Wordpress and save a draft, then preview it, it works and it looks great. This is why I thought it worked.. However, when I publish the page, it stops working. You can see here: http://reservadirecta.es/published-page/

The error is:
Loading failed for the <script> with source “http://reservadirecta.es/published-page ... zer.min.js”. published-page:306
ReferenceError: iFrameResize is not defined[Més informació]

The link towards more information is: https://developer.mozilla.org/en-US/doc ... ot_defined

Re: IFrame resizing not working

Posted: Sat Nov 04, 2017 4:06 pm
by markkinchin
The following is trying to load the js file from your server but it is not there.

<script type="text/javascript" src="iframeResizer.min.js">

You just need to place a copy of the file at the location specified by src=

Re: IFrame resizing not working

Posted: Sat Nov 04, 2017 5:21 pm
by aptsbcn
Fantastic!! Thank you so much, it's perfect now!