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

iFrame doesn't resize
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4070
Page 1 of 1

Author:  hochhardt [ 7. Apr 2016, 16:57 ]
Post subject:  iFrame doesn't resize

Hi,

the iFrame doesnt resize, i think i make someting wrong.

The Domain for the Wordpress site is www.xyz.com
and the Domain for the Site in the iFrame is www.abc.com

So here is the code for the wordpress site:

[advanced_iframe securitykey="xxx" use_shortcode_attributes_only="true" src="http://www.abc.com/" id="iframeresize" height="300" width="800" scrolling="no" scrolling="no" onload_resize="true" hide_page_until_loaded="true" add_document_domain="true" and document_domain="abc.com" ]

and the code that i insert in the top of the sites that are in the iframe:

<script>
document.domain='xyz.com';
</script>

Settings in Wordpress:

Resize iframe to content height: Yes
Enable responsive iframe: Yes

This don't work. So where i make the mistakes??

Author:  TinyWebGallery [ 7. Apr 2016, 17:04 ]
Post subject:  Re: iFrame doesn't resize

www.xyz.com
www.abc.com

Are not subdomains

www.xyz.com
sub.xyz.com

would work.

you need to use the full external workaround.

Please make also sure not to usw words like "and" in the shortcode ;).

Best, Michael

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