The documentation says:
Make all settings you like and copy the ai_external.js to your https site
--> My ai external looks now as follows and is on https-site (Pferdetermine.de) in the customs-folder:
Code:
var iframe_id= "pferdetermine";
var updateIframeHeight = "true";
var keepOverflowHidden = "false";
var enable_responsive_iframe = "true";
var hide_page_until_loaded_external = "true";
var onload_show_element_only=".entry-content";
var element_to_measure=".entry-content";
var iframe_hide_elements="#header,.entry-header,.tc-header,.tc-header.clearfix.row-fluid.tc-tagline-on.tc-title-logo-on.tc-shrink-on.tc-menu-on.logo-left.tc-second-menu-in-sn-before-when-mobile,.site-title,.tc-reset-margin-top,.navbar-wrapper,.container outside,.site-description";
/* new*/
var usePostMessage = true;
/* This is the difference to example 51 */
var jquery_path = 'jquery.min.js';
var resize_path = 'jquery.ba-resize.min.js';
Copy advanced-iframe/includes/scripts/jquery.min.js to your https site IF you don't have jQuery in the page in the iframe
--> That file already exists on the https site... or is it not identical to the one from the http site and do I have to replace it?
Copy advanced-iframe/includes/scripts/jquery.ba-resize.min.js to your https site IF you use "resize on element resize"
--> That file already exists on the https site... or is it not identical to the one from the http site and do I have to replace it?
Include ai_external.js not like described on the "external workaround" tab but directly from your https site
--> I have this code now in my https-site-page:
Code:
<script>
var iframe_id= "pferdetermine";
var updateIframeHeight = "true";
var keepOverflowHidden = "false";
var enable_responsive_iframe = "true";
var hide_page_until_loaded_external = "true";
var onload_show_element_only=".entry-content";
var element_to_measure=".entry-content";
var iframe_hide_elements="#header,.entry-header,.tc-header,.tc-header.clearfix.row-fluid.tc-tagline-on.tc-title-logo-on.tc-shrink-on.tc-menu-on.logo-left.tc-second-menu-in-sn-before-when-mobile,.site-title,.tc-reset-margin-top,.navbar-wrapper,.container outside,.site-description";
var usePostMessage = true;
var jquery_path = 'jquery.min.js';
</script>
<script src="https://pferdetermine.de/wp-content/plugins/advanced-iframe-custom/ai_external.js"></script>
It still does not work.... what am I doing wrong? Which part is needed in the ai_external.js and which one on the iframe page?
I did the changes for this page: http://www.petra-koepcke.de/termine-reitkurse/