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

iframe from an external site with auto height
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4183
Page 1 of 1

Author:  lishai [ 23. Nov 2016, 20:47 ]
Post subject:  iframe from an external site with auto height

What code is required to embed an iframe from an external site with auto height?
Thank you

Using Visual Composer 5.0
Advanced iFrame Pro v7.3
WordPress 4.6.1

Author:  TinyWebGallery [ 23. Nov 2016, 22:43 ]
Post subject:  Re: iframe from an external site with auto height

Please follow the instructions on the "external workaround" tab in the administration -> If you are NOT on a sub domain

There you find:
Add the following Javascript to the external web page you want to show in the iframe (The optimal place is before the </body> if possible. Otherwise put it in the head section. NEVER place it just after the <body> as than the height of the script element would be measured!):
<script src="http://<your path>/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>

you also see this here:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/external-workaround-auto-height-and-css-modifications

Please note that the example also does css modifications. So if you only nee autoheight you only need to include the js file + enable auto height in the administration on the "external workaround" tab.

Author:  studiopijlman [ 3. Dec 2016, 11:46 ]
Post subject:  Re: iframe from an external site with auto height

Hi

What If I can not add the code to the external site, which I want to to show in the Iframe with auto height?
Can I do this with this plugin? Because that was the only reason whu I purchased the Pro version

Author:  lishai [ 4. Dec 2016, 01:33 ]
Post subject:  Re: iframe from an external site with auto height

Sorry but we purchase the plugin so we can embed an iframe from external site (with auto height) WITHOUT the need to make changes on the external site. As the other user mentioned, I have no control on the external site. Please advise.

Author:  TinyWebGallery [ 4. Dec 2016, 16:15 ]
Post subject:  Re: iframe from an external site with auto height

Hi,

Auto height is only possible IF you have access to the other site.

On codecanyon it is written in bold:
https://codecanyon.net/item/advanced-iframe-pro/5344999
-> "Please check the quickstart section before you buy! There you find out which features are available for you!"

https://codecanyon.net/item/advanced-iframe-pro/5344999#item-description__qs
-> To resize the content to the height/width or modify css you need to modify the remote iframe page by adding one line of Javascript to enable the provided workaround.

And this is a feature available in the free version also! So that everyone can test before buying!

It is simply impossible to do auto height without access to the other page! This is a browser security restriction as the content inside the iframe is completely unknown to the parent. The plugin does the maximum that is possible.

Best, Michael

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