Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Html display:hidden https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4554 |
Page 1 of 1 |
Author: | tiagop2p [ 22. Feb 2018, 14:21 ] |
Post subject: | Html display:hidden |
Hello! I have a form on my page that forces a file to be downloaded after submit When this happens my iframe goes white. is applied a css display: hidden in html. Why does this happen? |
Author: | TinyWebGallery [ 22. Feb 2018, 14:36 ] |
Post subject: | Re: Html display:hidden |
Can you please provide your whole setup/shortcode. because the plugin does depending on the config hide the iframe until all changes and then enabled again. But maybe you use the wrong attribute here. Best, Michael |
Author: | TinyWebGallery [ 22. Feb 2018, 14:43 ] |
Post subject: | Re: Html display:hidden |
Also this can be a iframe protection. like "if in iframe we hide". This is a quite common way to prevent iframing. But a document is downloaded - right? Best, Michael |
Author: | tiagop2p [ 22. Feb 2018, 15:10 ] |
Post subject: | Re: Html display:hidden |
my shortcode: [advanced_iframe securitykey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" src="{{url-servicos}}/Publica/C" id="iframeServicos" width="100%" onload_resize="true" hide_page_until_loaded_external = "false"] in my page content: <script> var iframe_id = "iframeServicos"; var iframe_content_id = "#iframeServicos"; var updateIframeHeight = "true"; var hide_page_until_loaded_external = "true"; </script> <script src="https://www.tce.es.gov.br/wp-content/plugins/advanced-iframe/js/ai_external.js"> </script> |
Author: | tiagop2p [ 22. Feb 2018, 15:24 ] |
Post subject: | Re: Html display:hidden |
yes, the file is downloaded, but then applied visibility: hidden in the contents of the iframe |
Author: | TinyWebGallery [ 22. Feb 2018, 16:14 ] |
Post subject: | Re: Html display:hidden |
"/Publica/CertidaoRegularidadeTransferenciaVoluntaria/EmitirCertidaoRegularidadeTransferenciaVoluntaria" does contain the correct settings. hide_page_until_loaded_external = "false" needs to be true. Because if you set var hide_page_until_loaded_external = "true"; in the remote page then it needs to be shown again on the remote page. onload_resize="true" is for the same domain. Please remove it. also it seems you have some settings in the administration for resize on element resize. Please add: use_shortcode_attributes_only="true" hide_page_until_loaded_external="true" currently you have quite some errors in the Javscript console. They should be gone with the settings above. var iframe_content_id = "#iframeServicos"; is also not not needed - it only works together with var iframe_content_styles As you don't change the css you can acutally remove the hide_page_until_loaded_external from the remove Js settings and also from the shortcode. Always start simple.. Best, Michael |
Author: | tiagop2p [ 22. Feb 2018, 18:31 ] |
Post subject: | Re: Html display:hidden |
my problem is with ai_external.js, I'm falling in some case below: ai_external.js if (document.documentElement && write_css_directly == 'false') { document.documentElement.style.visibility = 'hidden'; } In my content, after my download starts, the page (iframe content) is reloaded. |
Author: | TinyWebGallery [ 22. Feb 2018, 18:56 ] |
Post subject: | Re: Html display:hidden |
so please remove var iframe_content_id = "#iframeServicos"; because then you do not get to this code. But normally I remove this again in line 281. I just debugged and you reload does not trigger a onload event. Maybe because of the download you start in parallel. I found a few bug reports for chrome that this can be an issue. In your case remove iframe_content_id and you should be fine. Best, Michael |
Author: | tiagop2p [ 22. Feb 2018, 20:12 ] |
Post subject: | Re: Html display:hidden |
Thank you for your help. It worked I was afraid my automatic height would stop working. I'm actually seeing multiple tabs on my console, but everything is working. What do I do ? or do not I? Thank you! |
Author: | TinyWebGallery [ 23. Feb 2018, 10:37 ] |
Post subject: | Re: Html display:hidden |
tabs on your console? I don't understand... |
Author: | tiagop2p [ 24. Feb 2018, 05:44 ] |
Post subject: | Re: Html display:hidden |
I do not know how to explain. I'm going to improve my English. It's all okay now, thank you. |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |