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

unable to activate auto hight with cross domain
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4440
Page 1 of 1

Author:  skitsa [ 27. Sep 2017, 08:59 ]
Post subject:  unable to activate auto hight with cross domain

Hey
The script embeded on the external page.
still not working...

Author:  TinyWebGallery [ 27. Sep 2017, 09:26 ]
Post subject:  Re: unable to activate auto hight with cross domain

Can you provide more information? Do you have a link?
Which configuration do you have? Any errors in the console (F12)?
Free or pro?

Best, Michael

Author:  skitsa [ 27. Sep 2017, 16:59 ]
Post subject:  Re: unable to activate auto hight with cross domain

Hi
the url is:
http://adeco2.s47.upress.link/

Author:  TinyWebGallery [ 27. Sep 2017, 17:33 ]
Post subject:  Re: unable to activate auto hight with cross domain

It seems that the whole content is set by Javascript after the page loads.

Please try the following.

Go to the external workaround tab and:

Enable post message comuncation -> debug.
Set the element to measure -> .wrapper
Resize/ css modification delay -> 200

Go to the advanced tab -> Resize the iframe to the content height/width
Set Resize on element resize: -> .wrapper

The 2nd one is needed as your page in the iframe is a one page application.

Best, Michael

Author:  skitsa [ 27. Sep 2017, 17:46 ]
Post subject:  Re: unable to activate auto hight with cross domain

Thanks, but still not working...

Author:  TinyWebGallery [ 27. Sep 2017, 22:06 ]
Post subject:  Re: unable to activate auto hight with cross domain

Check your Javascript console:

The configuration of "resize_on_element_resize" is invalid. The specified element .wrapper could not be found. Please check your configuration.
ai_external.js:489 The configuration of "element_to_measure" is invalid. The specified element .wrapper could not be found. Please check your configuration. As fallback "default" is used which measures the first child of the body.
ai_external.js:304 Advanced iframe configuration problem: The height of the page cannot be detected with the current settings. Please check the documentation of 'element_to_measure' how to define an alternative element to detect the height.

As your code is generated dynamically you might still have to increase the delay until the element to measure is searched for.

Also you should include ai_external.js before the </body> as written in the instructions because then the code is executed later when is should be. Then your page has maybe rendered already.

Best, Michael

Author:  TinyWebGallery [ 27. Sep 2017, 23:14 ]
Post subject:  Re: unable to activate auto hight with cross domain

I checked your code.

You have an older version of advanced iframe pro running. Please upgrade to 7.5.1 - there is a fix for the delay which could also work for your site.
I tried with
Resize/ css modification delay -> 2000

which works fine for me then.

Please set this also and save the settings so that ai_external.js is regenerated. Make sure that ai_external.js is reloaded (clear the browser cache or reload the page IN the iframe with F5).

Best, Michael

Author:  skitsa [ 28. Sep 2017, 19:38 ]
Post subject:  Re: unable to activate auto hight with cross domain

Hi
Thanks, it works better with the new version, still i have a problem on resize...
If you see, the resize on load is working well but not working on click or size change...

Author:  skitsa [ 30. Sep 2017, 20:38 ]
Post subject:  Re: unable to activate auto hight with cross domain

??

Author:  TinyWebGallery [ 1. Oct 2017, 12:00 ]
Post subject:  Re: unable to activate auto hight with cross domain

You still have the same message.

Is seems for me that you need to set #ember273 as element to measure and also for the resize to element resize.

See

The configuration of "element_to_measure" is invalid. The specified element could not be found. Please check your configuration. As fallback "default" is used which measures the first child of the body.
ai_external.js:315 Advanced iframe configuration problem: The height of the page cannot be detected with the current settings. Please check the documentation of 'element_to_measure' how to define an alternative element to detect the height.

and
onload_resize_delay = 200 seems not enough for me. I checked ai_external.js and also resize to element resize is not set at all! check what I have written before how to set this!

Best, Michael
.

Author:  skitsa [ 1. Oct 2017, 13:01 ]
Post subject:  Re: unable to activate auto hight with cross domain

Hi
I just go over all the setting and changed it as you say...
It still have the same error.

Author:  TinyWebGallery [ 1. Oct 2017, 21:16 ]
Post subject:  Re: unable to activate auto hight with cross domain

Now only one error is left:

The configuration of "resize_on_element_resize" is invalid. The specified element #ember273 could not be found. Please check your configuration.

This is because this part is loaded dynamically. I have to also connect this init to delay. Can I send you a new version of the ai_external.js template? Where should I send it to. You would then need to replace this file in your configuration.

Auto height for the first page works fine now.

Best, Michael

Author:  skitsa [ 1. Oct 2017, 21:19 ]
Post subject:  Re: unable to activate auto hight with cross domain

Great...
You can send me to skitsa@gmail.com
Just to replace it?

Author:  TinyWebGallery [ 1. Oct 2017, 21:37 ]
Post subject:  Re: unable to activate auto hight with cross domain

I just tried to send it. Check if you got it and follow the instructions there.

Best, Michael

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