Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Auto-height https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4646 |
Page 1 of 1 |
Author: | asf137 [ 10. May 2018, 05:51 ] |
Post subject: | Auto-height |
I am trying to adjust the iframe for auto-height .. all trials failed. Every time I get fixed height. I am activating almost all options and nothing improved. The current copy and paste code is: <script> var iframe_id = "insurance01"; var updateIframeHeight = "true"; var hide_page_until_loaded_external = "true"; var onload_show_element_only = "#iframe-right"; var iframe_content_id = "#iframe-content|#iframe-right"; var iframe_content_styles = "color:#ff0000|float:none;height:300px"; </script> <script src="https://www.adamtravel.de/wp-content/plugins/advanced-iframe/js/ai_external.js"></script> [advanced_iframe securitykey="c4d7bb8e4fe8f91b75c60c19fdda3b35ae4e4fe9" use_shortcode_attributes_only="true" src="https://www.reiseversicherung.de/baRuntime/start?rendermode=31&ba=standard3&agency=040011000016" id="insurance01" width="100%" height="1600" scrolling="no" name="insurance01" onload_scroll_top="true" hide_page_until_loaded="true" ] |
Author: | TinyWebGallery [ 11. May 2018, 23:11 ] |
Post subject: | Re: Auto-height |
https://www.reiseversicherung.de/baRuntime/start?rendermode=31&ba=standard3&agency=040011000016 does not contain ai_external.js. So where have you placed it? The file has to be included to the page in the iframe like described in the documentation. Best, Michael |
Author: | asf137 [ 3. Jun 2018, 05:26 ] |
Post subject: | Re: Auto-height |
So, Auto-height will not work unless there is that js in the included page? what shall I do if this is provided to me from third party? any other solutions? |
Author: | TinyWebGallery [ 3. Jun 2018, 23:12 ] |
Post subject: | Re: Auto-height |
What is "this"? The page in the iframe? If you are not able to add the ai_external.js the you cannot use auto height as there is no way to detect the size of the content in the iframe. And there is no solution. I would have added this to my plugin already if there would be one. See: http://www.tinywebgallery.com/blog/adva ... y-overview Best, Michael |
Author: | asf137 [ 4. Jun 2018, 00:19 ] |
Post subject: | Re: Auto-height |
I would think of a proxy then that injects the js in the included (framed) page. Thank you .. I have bought plugin for this feature, I did not understand that .. for example. .. is it possible to include the remote page in a local php file which has the js then it goes back to the frame .. just a concept! |
Author: | TinyWebGallery [ 4. Jun 2018, 13:55 ] |
Post subject: | Re: Auto-height |
See: http://www.tinywebgallery.com/blog/using-a-reverse-proxy-to-enable-all-features-of-advanced-iframe-pro Can you setup this on your server? Also a software proxy is an option. I have played around with this and this only works for very simple websites. This is for sure no generic solution I can offer to everyone. Best, Michael |
Author: | asf137 [ 4. Jun 2018, 18:45 ] |
Post subject: | Re: Auto-height |
Interesting! You are genius I am running the website on a shared server .. I will need to check if I can use .htaccess to workaround or php proxy solutions |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |