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

Iframe height not auto resizing
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=3848
Page 2 of 2

Author:  akpkumar [ 28. Apr 2015, 14:47 ]
Post subject:  Re: Iframe height not auto resizing

It still doesnt work with the way you mentioned. I am using the Pro version only for one iframe, it was working previously by simply applying the short code in the page. But it doesnt work now. What could be the issue?

Author:  TinyWebGallery [ 28. Apr 2015, 15:13 ]
Post subject:  Re: Iframe height not auto resizing

You maybe used auto height for the same domain. There you can simply set onload_resize="true".

On remote domains you need to use the external workaround like mentioned already. And there you need to add this line of Javascript to the page you want to include.

http://www.partner.viator.com/en/8810 does not contain ai_external.js. Therefore auto height is not possible.

Es written on the quickstart guide:
"To resize the content to the height/width or modify css you need to modify the remote iframe page by adding one line of Javascript to enable the provided workaround."

Best, Michael

Author:  akpkumar [ 28. Apr 2015, 15:23 ]
Post subject:  Re: Iframe height not auto resizing

Thanks a ton Michael.

Author:  TinyWebGallery [ 28. Apr 2015, 15:29 ]
Post subject:  Re: Iframe height not auto resizing

So are you able to modify http://www.partner.viator.com/en/8810 ?

Best, Michael

Author:  akpkumar [ 28. Apr 2015, 15:33 ]
Post subject:  Re: Iframe height not auto resizing

Am asking them at this moment, i dont think its possible though. Funny how it initially worked with simple settings.

Author:  TinyWebGallery [ 28. Apr 2015, 16:00 ]
Post subject:  Re: Iframe height not auto resizing

I'm currently writing a blog entry about this can be done also with setting up a reverse proxy which can be done if you run your own server.
But depending on the other site it is between advanced and impossible ;).

Best, Michael

Author:  akpkumar [ 28. Apr 2015, 16:03 ]
Post subject:  Re: Iframe height not auto resizing

I have WHM access, is it possible that way?

Author:  TinyWebGallery [ 28. Apr 2015, 16:08 ]
Post subject:  Re: Iframe height not auto resizing

It depends. If you have access to the httpd.conf and mod_proxy is available you have the basics. But creating a proxy for a different page is not simple as you might have to rewrite links and so on. If you are lucky you only need 2 hours for setup. If you are unlucky you do this for 2 days and are still not 100% successful. Especially e.g. if you have complex logic, Ajax calls ... then it might be impossible.

Author:  akpkumar [ 28. Apr 2015, 16:12 ]
Post subject:  Re: Iframe height not auto resizing

Alright, got it. Thanks again...

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