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

AI Standalone standalone-ai_external_config.js
https://www.tinywebgallery.com/forum/advanced-iframe-support-f21/ai-standalone-standalone-ai-external-config-js-t4499.html
Page 1 of 1

Author:  marcverkade [ 19. Dec 2017, 01:26 ]
Post subject:  AI Standalone standalone-ai_external_config.js

Ha Michael,

You state that all 'external workaround' variables should be presented in the standalone-ai_external_config.js file.
Can you give me an overview of all 'external workaround' variables that are possible in that .js file next to the few given in your sample?
The reason I ask is that for instance 'keepOverflowHidden' is set with 'keep_overflow_hidden' when using the normal shortcode..
I am confused regarding this difference....

These are the variables I found in your sample:
var domain_advanced_iframe = '../';
var iframe_id="advanced_iframe";
var updateIframeHeight = "true";
var keepOverflowHidden = "false";
var hide_page_until_loaded_external = "true";
var onload_show_element_only = "#iframe-right";
var iframe_content_id = "#iframe-right";
var iframe_content_styles = "float:none;height:auto;color:#ff0000;";
var resize_on_element_resize = "#iframe-right";
var resize_on_element_resize_delay = "50";
// this is used here that the example works out of the box everywhere!
// if you set this to false you need to set post_message_domain instead!
var domainMultisite = 'true';

So let's put it in other words...
I want to mimic these external workaround settings using the stanalone version. So what settings go in that external .js file?

[advanced_iframe securitykey="mykey" use_shortcode_attributes_only="true" src="https://webshop-wordpress.broekmans.nl" width="100%" height="2000" scrolling="no" enable_ios_mobile_scrolling="true" id="EVWebshop" name="EVWebshop" url_forward_parameter="ALL" add_iframe_url_as_param_prefix="webshop-wordpress.broekmans.nl" onload_scroll_top="true" show_iframe_loader="true" enable_responsive_iframe="true" hide_page_until_loaded="false" resize_on_ajax_jquery="false" enable_external_height_workaround="true" map_parameter_to_url="page" use_post_message="true" ]

Author:  marcverkade [ 19. Dec 2017, 06:02 ]
Post subject:  Re: AI Standalone standalone-ai_external_config.js

Never mind, found it in the code with the defaults:

var iframe_id_advanced_iframe = "advanced_iframe";
var iframe_advanced_iframe_last_height = -1
var iframe_url_id = "";
var domainMultisite = "false";
var post_message_domain = "*";
var usePostMessage = true;
var debugPostMessage = true;
var dataPostMessage = '';
var updateIframeHeight = "true";
var onload_resize_delay = 0;
var keepOverflowHidden = "false";
var hide_page_until_loaded_external = "false";
var iframe_hide_elements = "";
var onload_show_element_only = "";
var iframe_content_id = "";
var iframe_content_styles = "";
var change_iframe_links = ""
var change_iframe_links_target = "";
var additional_js_file_iframe = "";
var additional_js_iframe = '';
var additional_css_file_iframe = "";
var iframe_redirect_url = "";
var enable_responsive_iframe = "false";
var write_css_directly = 'false';
var resize_on_element_resize = '';
var resize_on_element_resize_delay = '250';
var add_iframe_url_as_param = 'false';
var element_to_measure = 'default';
var element_to_measure_offset = 0;
var additional_styles_wrapper_div = '';
var add_css_class_iframe = 'false';

Author:  TinyWebGallery [ 19. Dec 2017, 19:01 ]
Post subject:  Re: AI Standalone standalone-ai_external_config.js

As I have written in my other post they are also available in the administration on the external workaround tab -> show all parameters.

Best, Michael

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