Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Resize iframe to content height https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4310 |
Page 1 of 1 |
Author: | aparisis [ 20. Apr 2017, 11:08 ] |
Post subject: | Resize iframe to content height |
Hi, I use advanced iframe pro and I have a problem with resize iframe to content height. I use that code [advanced_iframe securitykey="***" use_shortcode_attributes_only="true" src="http://bubblingsounds.gr/sam/topbar_en.html" width="100%" height="36" scrolling="no" id="advanced_iframe" enable_responsive_iframe="true" onload_resize="true" ] but the height doesn't resize according the the page. My site is http://bubblingsounds.gr/en Any help please? Regards Andreas |
Author: | TinyWebGallery [ 20. Apr 2017, 17:04 ] |
Post subject: | Re: Resize iframe to content height |
Uncaught ReferenceError: aiResizeIframe is not defined the ai.js is not in the source code... Something like wp-content/plugins/advanced-iframe/js/ai.js ... is missing. are you using the standalone version? Best, Michael |
Author: | aparisis [ 20. Apr 2017, 17:30 ] |
Post subject: | Re: Resize iframe to content height |
Hi, I'm using the Advanced iFrame Pro version 7.4.1 |
Author: | TinyWebGallery [ 20. Apr 2017, 17:40 ] |
Post subject: | Re: Resize iframe to content height |
But the ai.js file is missing which is rendered by the plugin normally. do you have any optimization or cache plugins? Best, Michael |
Author: | aparisis [ 20. Apr 2017, 17:44 ] |
Post subject: | Re: Resize iframe to content height |
Yes, I'm using the wp rocket plugin. |
Author: | TinyWebGallery [ 20. Apr 2017, 18:02 ] |
Post subject: | Re: Resize iframe to content height |
try to refresh the cache there. maybe ai.js is not in the list of js that should be loaded somehow... |
Author: | aparisis [ 20. Apr 2017, 18:19 ] |
Post subject: | Re: Resize iframe to content height |
I deactivate the plugin but still the same... |
Author: | TinyWebGallery [ 20. Apr 2017, 22:27 ] |
Post subject: | Re: Resize iframe to content height |
I see. But the normal iframe code is rendered but not the ai.js which has all the javascript needed. Can you try to set "Include ai.js in the footer" to true on the "Introduction" tab. Best, Michael |
Author: | aparisis [ 21. Apr 2017, 07:26 ] |
Post subject: | Re: Resize iframe to content height |
Hi, It's already "yes" this option... |
Author: | TinyWebGallery [ 21. Apr 2017, 09:21 ] |
Post subject: | Re: Resize iframe to content height |
Have you tried "No" here? My problem is that this js file is the most important one and I never had the problem that is is simply not there at all!. Are you able to insert it directly to your code? Best, Michael |
Author: | aparisis [ 21. Apr 2017, 10:38 ] |
Post subject: | Re: Resize iframe to content height |
Hi, I tried and the "no" option with no luck. It is strange this issue because I use the same code here http://bubblingsounds.gr/en/request/ (search button) and here http://bubblingsounds.gr/en/playlist/ and it's working fine. How can I insert directly the js file? |
Author: | TinyWebGallery [ 21. Apr 2017, 11:14 ] |
Post subject: | Re: Resize iframe to content height |
You need to add this then to the wordpress footer file of you template. <script type='text/javascript' src='http://bubblingsounds.gr/wp-content/plugins/advanced-iframe/js/ai.js?ver=575317'></script> This is what I copied from your other page. So it is really strange why it is not on this page. I only can think of that another plugin on this page is somehow interfering.. Best, Michael |
Author: | aparisis [ 21. Apr 2017, 12:15 ] |
Post subject: | Re: Resize iframe to content height |
Hi, I add the script to the footer and it's working fine. Thanks. Regards Andreas |
Author: | TinyWebGallery [ 21. Apr 2017, 13:42 ] |
Post subject: | Re: Resize iframe to content height |
. |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |