• A while ago I was struggling over how to integrate osCommerce into a site that uses WP as the CMS. I knew it had to be done with iFrames, and the major hurdle was the fact that iFrames don’t resize to the content. So I’d end up with either lots of empty space or scrollbars–or both! And those destroy the smooth integration I wanted.

    I told a friend about my problem and he thought that solving the problem was a great way to avoid doing real work. So…

    I present to you: Dynamiframe (hey, I like corny names for programs).

    It’s a piece of javascript you can copy into any WP page (or post) and with only 2 simple edits, have variable-height iFrames displayed. There’s a simple demo on the site.

    If anyone has the skills to turn this into a real WP plugin, please do. I’d appreciate if you’d send me the upgraded file so I can post it.

  • The topic ‘Hack: Dynamic-height iFrames’ is closed to new replies.