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

Auto resize no longer working after url change
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=3901
Page 1 of 1

Author:  mnation [ 15. Jul 2015, 07:14 ]
Post subject:  Auto resize no longer working after url change

I had everything working fine when the site was in beta and working off the IP address. Once we launched and pointed the DNS to the site, we changed the settings in WP from the IP to the domain and the autosize feature stopped working.

The page we are pulling in is not on the same domain so we are using the script <script src="http://www.mydomain.com/wp-content/plugins/advanced-iframe/js/ai_external.js"></script> I went ahead and changed this script on the page we're pulling in so the domain was the real domain, not the ip address, confirmed it was there and still no auto size, it just pulls in the first 100px or so of the page with a scrollbar.

We then went back and changed the WP settings back to the IP and it worked. We obviously cannot keep it this way though so I was forced to change it back and set a static pixel height to the iframe for the interim. Are there any settings that I'm missing?

Any help would be greatly appreciated

Author:  mnation [ 15. Jul 2015, 07:55 ]
Post subject:  Re: Auto resize no longer working after url change

To clarify. if I go to the site via domain name, the iframe is not autosizing. However, if i access the same page via IP address, the iframe resizes properly.

Author:  TinyWebGallery [ 15. Jul 2015, 11:32 ]
Post subject:  Re: Auto resize no longer working after url change

Make sure that the domain of the ai_external.js matches. If you where using an ip there before you now need to use the domain.

Best, Michael

Author:  mnation [ 15. Jul 2015, 15:28 ]
Post subject:  Re: Auto resize no longer working after url change

By 'domain of the ai_external.js', you mean the url we're using the in the script that I placed in the page we're pulling in correct? I've confirmed that this matches the domain.

Or is there another setting I'm missing? This is the strangest thing because it still works fine when you access the page via IP address so I must be missing something.

Author:  TinyWebGallery [ 15. Jul 2015, 20:17 ]
Post subject:  Re: Auto resize no longer working after url change

There are 2 things.
The url you include the ai_external.js and also you have to save the settings again because the url is also saved inside the ai_external.js.
Both have to point to your new domain.

Best, Michael

Author:  mnation [ 15. Jul 2015, 21:14 ]
Post subject:  Re: Auto resize no longer working after url change

Got it, thanks

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