• Resolved privatelabelweb

    (@privatelabelweb)


    Hi,

    I’ve tried the external site solution to no avail and am now trying the subdomain solution, but the results remain the same.

    My wordpress application is on: dev.example.com
    and the application with the iFrame page is on: iframe.dev.example.com

    Then I have the below in iframe.dev.example.com/page/214:

    <script>
      document.domain='dev.example.com';
    </script>

    and I’m using the following shortcode:

    [advanced_iframe securitykey="XXX" use_shortcode_attributes_only="true" src="http://iframe.dev.example.com/page/214" width="100%" scrolling="no" hide_page_until_loaded="true" add_document_domain="true" document_domain="dev.example.com" onload_resize="true" onload_resize_delay="5000"]

    I just want to check if I’m not missing anything.

    Many thanks!

    https://wordpress.org/plugins/advanced-iframe/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mdempfle

    (@mdempfle)

    I’m not sure if

    document_domain=”dev.example.com”

    is correct.

    The parent and the iframe have to have the same
    .domain=”xxx”

    settings

    Thread Starter privatelabelweb

    (@privatelabelweb)

    Thanks for the response.

    I updated both sites to use the top level domain, but still no go. I then checked on the WordPress page itself and couldn’t see the document.domain code anywhere, so I manually placed it in to the page and boom! All worked as expected.

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't get iFrame to auto resize’ is closed to new replies.