Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
I cannot get my iframe to auto resize the height... https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4156 |
Page 1 of 1 |
Author: | sgeggie [ 28. Sep 2016, 23:46 ] |
Post subject: | I cannot get my iframe to auto resize the height... |
Here is my main page: https://undergrad.tiu.edu/application-test-page/ On the embedded page, I have included the following script: <script>// <![CDATA[ document.domain='tiu.edu'; // ]]></script> The embedded page is a subdomain... "https://jicsweb.tiu.edu/ICS/_portletview_/Apply/Apply_Online/Apply_Online.jnz?portlet=Apply_Online&formid=28" How can i get this to autosize the height??? Thanks much. |
Author: | TinyWebGallery [ 29. Sep 2016, 18:08 ] |
Post subject: | Re: I cannot get my iframe to auto resize the height... |
you also need to enable document.domain in your wordpress page. Simply do this in the administration or in the shortcode. See: http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/sub-domain-auto-height-and-css-modifications You get the following error in the log: (index):296 Uncaught SecurityError: Blocked a frame with origin "https://undergrad.tiu.edu" from accessing a frame with origin "https://jicsweb.tiu.edu". The frame being accessed set "document.domain" to "tiu.edu", but the frame requesting access did not. Both must set "document.domain" to the same value to allow access. |
Author: | sgeggie [ 30. Sep 2016, 21:39 ] |
Post subject: | Re: I cannot get my iframe to auto resize the height... |
Thank you that seemed to work. Now...I'm interested in using this for three different iframes on the wordpress site. [advanced_iframe securitykey="9d1dd63ec6c1957377e03698e374aa83543c1d83" src="https://jicsweb.tiu.edu/ICS/_portletview_/Apply/Apply_Online/Apply_Online.jnz?portlet=Apply_Online&formid=28" onload_resize="true"] [advanced_iframe securitykey="9d1dd63ec6c1957377e03698e374aa83543c1d83" src="https://jicsweb.tiu.edu/ICS/_portletview_/Apply/Apply_Online/Apply_Online.jnz?portlet=Apply_Online&formid=29" onload_resize="true"] [advanced_iframe securitykey="9d1dd63ec6c1957377e03698e374aa83543c1d83" src="https://jicsweb.tiu.edu/ICS/_portletview_/Apply/Apply_Online/Apply_Online.jnz?portlet=Apply_Online&formid=30" onload_resize="true"] Should these work as soon as I remove the src default in the administrative panel for Advanced iFrame? I tried it an it did not work.... |
Author: | sgeggie [ 30. Sep 2016, 21:40 ] |
Post subject: | Re: I cannot get my iframe to auto resize the height... |
Nevermind....I figured it out. I needed to reference the pages with the iframes as https:// |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |