IFrame resizing not working

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

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: 935
Joined: Fri Mar 02, 2012 1:43 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: 12
Joined: Sat Jan 24, 2015 2:58 pm
Contact:

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: 935
Joined: Fri Mar 02, 2012 1:43 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: 12
Joined: Sat Jan 24, 2015 2:58 pm
Contact:

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