IFrame resizing not working

Everything related to your website and the Beds24 widgets
Post Reply
aptsbcn
Posts: 6
Joined: Sat Jan 24, 2015 2:58 pm
Contact:

IFrame resizing not working

Post by aptsbcn » Sat Nov 04, 2017 12:37 pm

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!

markkinchin
Site Admin
Posts: 885
Joined: Fri Mar 02, 2012 1:43 pm

Re: IFrame resizing not working

Post by markkinchin » Sat Nov 04, 2017 1:05 pm

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?

aptsbcn
Posts: 6
Joined: Sat Jan 24, 2015 2:58 pm
Contact:

Re: IFrame resizing not working

Post by aptsbcn » Sat Nov 04, 2017 1:30 pm

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

markkinchin
Site Admin
Posts: 885
Joined: Fri Mar 02, 2012 1:43 pm

Re: IFrame resizing not working

Post by markkinchin » Sat Nov 04, 2017 4:06 pm

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=

aptsbcn
Posts: 6
Joined: Sat Jan 24, 2015 2:58 pm
Contact:

Re: IFrame resizing not working

Post by aptsbcn » Sat Nov 04, 2017 5:21 pm

Fantastic!! Thank you so much, it's perfect now!

Post Reply