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

Can't figure it out and get it to work
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4389
Page 1 of 1

Author:  SimpleAndPlain [ 7. Aug 2017, 20:49 ]
Post subject:  Can't figure it out and get it to work

I have tried to set this up. I want to use pages from MY own different website as responsive Iframes that auto resize to what the EXTERNAL page is like using the external workaround . I am always using the same configurations and only using one Iframe per page .I have added the code to the external page.

however I cannot get this to work .

the page (parent page) that i am trying to put an iframe on is https://criterionvoice.com/iframetest2/

I am added a copy of all my settings and what I did on the page to this google drive link .https://drive.google.com/drive/folders/0Bzps6E4DHuWDTEJQQjR2M3pHa1U?usp=sharing

Please help me figure this out to get it to work

Author:  TinyWebGallery [ 7. Aug 2017, 21:45 ]
Post subject:  Re: Can't figure it out and get it to work

The id in the ai_external.js is empty.

If you open the Javascript console you see the error.

Can you try to save the administration again?

in
https://criterionvoice.com/wp-content/plugins/advanced-iframe/js/ai_external.js

you should not have:
if (typeof iframe_id === 'undefined') {
var iframe_id_ = "";
} else {
var iframe_id_ = iframe_id;
}

but

if (typeof iframe_id === 'undefined') {
var iframe_id_ = "advanced_iframe";
} else {
var iframe_id_ = iframe_id;
}

you can also set this id by adding
<script>
var iframe_id="advanced_iframe";
</script>

before the ai_external.js.

Author:  SimpleAndPlain [ 7. Aug 2017, 22:28 ]
Post subject:  Re: Can't figure it out and get it to work

TinyWebGallery wrote:
The id in the ai_external.js is empty.

If you open the Javascript console you see the error.

Can you try to save the administration again?

in
https://criterionvoice.com/wp-content/plugins/advanced-iframe/js/ai_external.js

you should not have:
if (typeof iframe_id === 'undefined') {
var iframe_id_ = "";
} else {
var iframe_id_ = iframe_id;
}

but

if (typeof iframe_id === 'undefined') {
var iframe_id_ = "advanced_iframe";
} else {
var iframe_id_ = iframe_id;
}

you can also set this id by adding
<script>
var iframe_id="advanced_iframe";
</script>

before the ai_external.js.


thanks . I added the id to the settings and it doesn't show up anymore in error.

However it still is not working. now its giving me the following error

***
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.
***
I don't know what this error means and why do i need to define an height , isn't it supposed to get it automatically?

Author:  TinyWebGallery [ 7. Aug 2017, 23:39 ]
Post subject:  Re: Can't figure it out and get it to work

I just was on your site:
https://criterionvoice.com/iframetest2/
seems to resize now.

you should increase the default height.

And the error message does NOT say you should enter a height. You should define the element that should be measured! Normally this works automatically but sometimes this is needed to be set manually.

Best, Michael

Author:  SimpleAndPlain [ 8. Aug 2017, 19:35 ]
Post subject:  Re: Can't figure it out and get it to work

TinyWebGallery wrote:
I just was on your site:
https://criterionvoice.com/iframetest2/
seems to resize now.

you should increase the default height.

And the error message does NOT say you should enter a height. You should define the element that should be measured! Normally this works automatically but sometimes this is needed to be set manually.

Best, Michael



Thanks so much for your help

Author:  TinyWebGallery [ 8. Aug 2017, 21:29 ]
Post subject:  Re: Can't figure it out and get it to work

glad I could help...

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