Any way to seamlessly integrate an iFrame?

I know you have a lot of pages/products/content in this ecommerce solution, but maybe it's time to start moving away from it?
 
Last edited:
PHP:
//check every 0.5 seconds if the iframe needs resizing for content
    setInterval(resizeIframe, 500);

    //-----**Helper Functions**-----//

    function resizeIframe() {
        var iframeEl = window.parent.document.getElementById('iframe');
        if (iframeEl == null)
            iframeEl = document.getElementById('iframe');
        if (iframeEl != null && iframeEl.contentWindow.document.body != null) {
            if (iframeEl.style.height != iframeEl.contentWindow.document.body.offsetHeight + 'px') {
                iframeEl.style.height =
            iframeEl.contentWindow.document.body.offsetHeight + 'px';
            }
        }
    }

I use the above to resize iframe window automatically to match content height.

However, just link to the shop. People want URLS they can share, iframes are the devil :)
 
Back
Top Bottom