Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Resize iframe to height
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4069
Page 1 of 1

Author:  aparisis [ 7. Apr 2016, 09:43 ]
Post subject:  Resize iframe to height

Hi,
I'm a registered user of advanced iframe pro.
I need some help with the resize iframe to height settings.
At this link http://listen.bubblingsounds.gr/demo/ I use an iframe.
I want the same iframe to change it's height depend of the element.
If you use the search & request in the above link, for ex. put the word arcade, another page appears
in the same iframe but the height doesn't change, so the results are not all displaying.
Any help with that?
Regards
Andreas

Author:  TinyWebGallery [ 7. Apr 2016, 11:52 ]
Post subject:  Re: Resize iframe to height

You need to enable resize on element resize:

http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/resize-on-element-resize

Best Michael

Author:  aparisis [ 7. Apr 2016, 14:07 ]
Post subject:  Re: Resize iframe to height

Sorry for asking, but how excactly do I do that?
Right now I use this code [advanced_iframe securitykey="xxx" use_shortcode_attributes_only="true" src="xxx" onload_resize="true" width="100%" height="300" scrolling="no" id="advanced_iframe" enable_responsive_iframe="true"]
Regards
Andreas

Author:  TinyWebGallery [ 7. Apr 2016, 14:38 ]
Post subject:  Re: Resize iframe to height

oh - you have not setup the normal resize yet.

You are including a page from a subdomain. so pleaser read the following first:
http://www.tinywebgallery.com/blog/using-sub-domains-with-advanced-iframe

After you have enabled this you can use
onload_resize="true" and enable_responsive_iframe="true"

after that you can enable the "resize on element resize".

But do the first step first ;).

Best, Michael

Author:  aparisis [ 7. Apr 2016, 21:03 ]
Post subject:  Re: Resize iframe to height

I put the script as you suggest but I have trouble with the
"resize on element resize". I can't make it work...
Regards
Andreas

Author:  TinyWebGallery [ 7. Apr 2016, 22:22 ]
Post subject:  Re: Resize iframe to height

The normal resize does work?
How does your config look like?

Best, Michael

Author:  aparisis [ 8. Apr 2016, 07:11 ]
Post subject:  Re: Resize iframe to height

[advanced_iframe securitykey="xxx" use_shortcode_attributes_only="true" src="http://bubblingsounds.gr/sam/request-index.html" width="100%" height="300" scrolling="no" id="advanced_iframe" enable_responsive_iframe="true" onload_resize="true" resize_on_ajax_jquery="false"]

Author:  TinyWebGallery [ 8. Apr 2016, 08:56 ]
Post subject:  Re: Resize iframe to height

There is no script.

Not in the main page nor in the iframe page.

Please read again:
You are including a page from a subdomain. so please read the following first:
http://www.tinywebgallery.com/blog/using-sub-domains-with-advanced-iframe

Before you have not done that the shortcode can not work as browser do not allow this!

Best, Michael

Author:  aparisis [ 8. Apr 2016, 09:28 ]
Post subject:  Re: Resize iframe to height

Is the script ok now?

Regards
Andreas

Author:  TinyWebGallery [ 8. Apr 2016, 09:49 ]
Post subject:  Re: Resize iframe to height

No.

in the main page you have

document.domain=’bubblingsounds.gr’;
and not
document.domain='bubblingsounds.gr';

See the wrong single quotation mark? You have use an apostrophe!

and on
http://bubblingsounds.gr/sam/request-index.html

there is no script at all.

Best, Michael

Author:  TinyWebGallery [ 8. Apr 2016, 09:50 ]
Post subject:  Re: Resize iframe to height

And on the main page actually the plugin does this for you. Check the "external workaround" tab. There is a step by step documentation what you have to do.

Author:  aparisis [ 8. Apr 2016, 10:36 ]
Post subject:  Re: Resize iframe to height

Thanks for your time. It's working now.

Reagrds
Andreas

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/