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

Advanced iframe parent page links
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4618
Page 2 of 3

Author:  chushanxiaocao [ 3. May 2018, 14:41 ]
Post subject:  Re: Advanced iframe parent page links

I submitted a survey on Wordpress.
Have a nice one!

Author:  chushanxiaocao [ 11. Jul 2018, 21:53 ]
Post subject:  Re: Advanced iframe parent page links

Hi,Michael.

I have a question on resize on element resize same domain.

I show/hide elements in the iframe, and the resize_on_element_resize feature works in the register.aspx page . This is my code.
[advanced_iframe src="http://www.abc.com/wp/register.aspx" width="100%" height="200px" use_shortcode_attributes_only="true" onload_resize="true" resize_on_element_resize="#content"]


However, I have another page, the parent login.aspx. Once logged in, there are several links that bring user to several child pages.
For example, page http://www.abc.com/wp/child1.aspx has element. This time the resize_on_element_resize feature does not work.
[advanced_iframe src="http://www.abc.com/wp/login.aspx" width="100%" height="200px" use_shortcode_attributes_only="true" onload_resize="true" resize_on_element_resize="#content"]

Please help.
Thank you!

Author:  TinyWebGallery [ 11. Jul 2018, 23:43 ]
Post subject:  Re: Advanced iframe parent page links

I cannot access http://www.abc.com/wp/child1.aspx. But does this also have an element with id="content"?
Also is the content maybe loaded by Ajax? So you maybe need a delay for the first resize?

And errors in the Javascript console? Chrome -> F12 -> console

Best, Michael

Author:  chushanxiaocao [ 12. Jul 2018, 15:04 ]
Post subject:  Re: Advanced iframe parent page links

Thank you for your promt response.
Let me put it in other way.
I have two identical asp.net pages with same element and same elemtent ID. Both are located under www.abc.com/wp/

first.aspx is the parent page and embedded in the advanced iframe using the following code.
[advanced_iframe src="http://www.abc.com/wp/first.aspx" width="100%" height="200px" use_shortcode_attributes_only="true" onload_resize="true" resize_on_element_resize="#content"]
Once embedded, the URL to access the first.aspx became http://www.abc.com/index.php/first-page/
This page has a <div> element (id is content) that is invisable (by default), but can be shown by clicking on a radio button. Howerver, if the element is shown, the vertical bar is also shown in the frame.
That is NOT good. The resize_on_element_resize feature was used to fix it by adding resize_on_element_resize="#content".
(I think the resize_on_element_resize was called when http://www.abc.com/index.php/first-page/ was loaded)

So fa so good.

the first.aspx has a hyperlink that links to the second.aspx. The second.aspx is a copy of first.aspx haiving the same element with same ID.
The URL to access the second.aspx became http://www.abc.com/index.php/first-page/?page=www.abc.com/wp/second.aspx
second.aspx has a <div> element (id is content) that is invisable (by default), but can be shown by clicking on a radio button.
The problem is here.
Unlike the first.aspx, if the element is shown, the vertical bar is also shown in the frame, AND CAN NOT be removed.

In other words, how can call resize_on_element_resize="#content" when the following page was loaded.
http://www.abc.com/index.php/first-page/?page=www.abc.com/wp/second.aspx

Thank you in advance!

Author:  TinyWebGallery [ 12. Jul 2018, 22:03 ]
Post subject:  Re: Advanced iframe parent page links

Any errors in the Javascript console? This is the most important place to look first.

Best, Michael

Author:  chushanxiaocao [ 13. Jul 2018, 19:34 ]
Post subject:  Re: Advanced iframe parent page links

The following was copied from Chrome-->12-->console

The first page that is working
JQMIGRATE: Migrate is installed, version 1.4.1
widgets.js:1 Failed to load resource: net::ERR_CONNECTION_RESET
footer-background-solid.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
platform.twitter.com/widgets.js:1 Failed to load resource: net::ERR_CONNECTION_RESET
scalia-icons.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
web.icdd.com//wp-content/uploads/2017/05/pdf4.ico:1 Failed to load resource: net::ERR_NAME_NOT_RESOLVED


The second page that is NOT working
Failed to load resource: net::ERR_CONNECTION_RESET
footer-background-solid.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
platform.twitter.com/widgets.js:1 Failed to load resource: net::ERR_CONNECTION_RESET
scalia-icons.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
2web.icdd.com//wp-content/uploads/2017/05/pdf4.ico:1 Failed to load resource: net::ERR_NAME_NOT_RESOLVED


Please use this to test
http://www.icdd.com/index.php/ppxrd-first/

Thank you!

Author:  TinyWebGallery [ 14. Jul 2018, 20:16 ]
Post subject:  Re: Advanced iframe parent page links

I think I now what the problem is.

the resize method is only initialized once on the same domain.

You have this options:
1. Modify a file of the plugin directly on the server. Are you able to do this?
I'm testing this right now...

2. use the external workaround.

3. wait for my update...

Best, Michael

Author:  chushanxiaocao [ 16. Jul 2018, 13:40 ]
Post subject:  Re: Advanced iframe parent page links

I can try option
1. Modify a file of the plugin directly on the server. Are you able to do this?
I'm testing this right now...

I can also wait for option, but I wish it won't take a long time.
3. wait for my update...

Thank you!

Author:  TinyWebGallery [ 16. Jul 2018, 21:14 ]
Post subject:  Re: Advanced iframe parent page links

I had to change a couple of this. So 1. is not really an option.

I can create a version for you from my current local version. There I'm adding a new feature which is not ready yet but as it is disabled right now this should not bother you.
Where can I send the version to? Make sure you can receive zip files.

Best, Michael

Author:  chushanxiaocao [ 17. Jul 2018, 04:36 ]
Post subject:  Re: Advanced iframe parent page links

Please send it to
chushanxiaocao@gmail.com

Thank you very much!

Author:  TinyWebGallery [ 24. Jul 2018, 23:38 ]
Post subject:  Re: Advanced iframe parent page links

Sorry for the delay but gmail does not support zip files with javascript files.
Do you have an alternative e-mail?

Best, Michael

Author:  chushanxiaocao [ 25. Jul 2018, 00:53 ]
Post subject:  Re: Advanced iframe parent page links

Sorry for that.
Can you please try this one:
info@icdd.com
or can you please send me a downloading link via email
chushanxiaocao@gmail.com
Thank you very much!

Author:  TinyWebGallery [ 25. Jul 2018, 19:56 ]
Post subject:  Re: Advanced iframe parent page links

sent to info@icdd.com

Best, Michael

Author:  chushanxiaocao [ 30. Jul 2018, 21:52 ]
Post subject:  Re: Advanced iframe parent page links

Hi Michael,

I am sorry for having to bother you.
Can you please re-send the new version to this email at:
si@icdd.com
Thank you so much in advance.

Author:  TinyWebGallery [ 30. Jul 2018, 22:59 ]
Post subject:  Re: Advanced iframe parent page links

done

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