iFrameHost Dynamic Sizing for iFrames Copyright 2022 Kirk Siqveland (Kirk@CyberTamer.com) Under Creative Commons: CC-BY-NC-SA 4.0 (see included License_CC_BY_NC_SA_4.0.txt file ) To Install -- Non-PmWiki websites Files- iframe_host.js & iframe_guest.js (You should not need to modify these files for typical use.) >> You will need a reference in your hosting page's html to the iframe_host.js e.g. If your host page and guest page are both on - the same domain (and subdomain), - the same port (e.g. 443), - and the same protocol (e.g. https) THEN: >> iframe_host.js and iframe_guest.js must be in the same directory. >> the Otherwise: >> the guest page MUST include a reference to a copy of iframe_guest.js (best if on the same server as the guest page.) >> the If the first method fails, even with same domain,port & protocol then try the second method. To Install -- PmWiki: Files- Copy BridgeSite.php to your {pmwiki}/cookbook/ directory. Copy iframe_host.js & iframe_guest to your {pmwiki}/pub/ directory. add the following lines to your {pmwiki}/local/Config.php file ## Include Code for BridgeSite - iFrame insertion tool recipe include_once ('cookbook/BridgeSite.php') ; ## Insert the iframe_host.js script to the bottom of your Skin template. $HTMLFooterFmt['BridgeSite'] = '' ;