Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 22. Nov 2024, 10:25

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Html display:hidden
PostPosted: 22. Feb 2018, 14:21 
Offline

Joined: 24. Jan 2018, 02:03
Posts: 16
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?


Last edited by tiagop2p on 24. Feb 2018, 05:43, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 22. Feb 2018, 14:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 22. Feb 2018, 14:43 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 22. Feb 2018, 15:10 
Offline

Joined: 24. Jan 2018, 02:03
Posts: 16
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>


Last edited by tiagop2p on 24. Feb 2018, 05:43, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 22. Feb 2018, 15:24 
Offline

Joined: 24. Jan 2018, 02:03
Posts: 16
yes, the file is downloaded, but then applied visibility: hidden in the contents of the iframe


Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 22. Feb 2018, 16:14 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
"/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


Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 22. Feb 2018, 18:31 
Offline

Joined: 24. Jan 2018, 02:03
Posts: 16
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.


Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 22. Feb 2018, 18:56 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 22. Feb 2018, 20:12 
Offline

Joined: 24. Jan 2018, 02:03
Posts: 16
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!


Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 23. Feb 2018, 10:37 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
tabs on your console? I don't understand...


Top
 Profile  
 
 Post subject: Re: Html display:hidden
PostPosted: 24. Feb 2018, 05:44 
Offline

Joined: 24. Jan 2018, 02:03
Posts: 16
I do not know how to explain.
I'm going to improve my English.

It's all okay now, thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy