Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Greg Ross

    (@gregross)

    Is your target in the same namespace as your site?

    The auto sizing doesn’t work across domains due to browser security issues.

    You can manually set the height of the frame from the shortcode though.

    Hi Greg,

    I have been using your plugin “Auto Iframe” to our website but I was tired looking for a reason on why the height is still not 100% as the website’s container.

    I used the code:

    [auto-iframe link=https://desertbelle.thundertix.com/ height=100% autosize=yes]

    Since our website is using Visual Composer, adding <iframe height=”100%”– is no longer supported. And I found your plugin that may helps us.

    Thank you.

    Plugin Author Greg Ross

    (@gregross)

    The problem is that your using both height and autosize. When both options are used the initial height of the container will be set to 100%, but will then be resized to the size of the content.

    If you just want the iframe to be the size of your website’s container, turn off autosize.

    P.S. Next time please open a new thread instead of tacking on to the end of on that has already been closed. Thanks.

    vantron

    (@vantron)

    I found a Bug in your code Hope it helps:

    $result .= ‘<iframe id=”‘ . $tag . ‘” src=”‘ . $link . ‘” width=”‘ . $width . ‘” height=”‘.$height.'” frameborder=”‘ . $border . ‘” scrolling=”‘ . $scroll . ‘” onload=”AutoiFrameAdjustiFrameHeight(\” . $tag . ‘\’,’ . $fudge . ‘);”></iframe>’;

    the height=”auto” was hardcoded and I Change it to height=”‘.$height.'”.

    Thanks for the plug-in ??

    Plugin Author Greg Ross

    (@gregross)

    Thanks @vantron, it will be fixed in the next release.

    P.S. you should open a new thread instead of tagging on to the end of a closed one in the future.

    Thanks @vantron, I made my site cool with Auto iFrame plugin alongwith your help.

    We’d like https://shop.op247.com/8512/ to iframe into cosatl.com. When you say iframing doesnt work across domains, does that mean that type of iframe will not work?

    Plugin Author Greg Ross

    (@gregross)

    @cgl102770 the iframe will work but it will not autosize to the content as browser security will not let the parent access the cross domain source information.

    So if you just want a statically sized iframe it will work.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Height issue’ is closed to new replies.