OK, this is not exacly a pure iframe solution but a viable workaround wrapping iframed content in a flash widget that allows for dynamic height and width across domains. It is a two step process for now (Create widget and add as javascript) but I think the core team may be able to pick up the ball and run with this working solution...
Is the javascript one would enter in an html text box to include the iframed store in their site across domains without any gripes. The widget will size itself dynamically and you can set up and pass parameters to the flash widget to override and set style over the content, pass vairables etc.
The guys at widgetbox did some nice work and what you build and create as widgets can be ported and installed on:
Below is a cut-n-paste from their developer faq's on how they did it. Enjoy...
Widgets have the option of being sized dynamically, rather than the end user typing in a specific width and height in pixels.
What it does
Widgets are hosted in an iFrame (for security reasons), and iFrames don’t naturally have the ability to resize themselves to nicely fit around their contents. Dynamic sizing attempts to size the iFrame to fit the contents.
How it works
When a dynamically-sized widget renders, Widgetbox’s Javascript listens for the widget’s HTML inside the iFrame to finish loading. Once loaded, the Javascript attempts to determine what the desired size of the HTML page. It then communicates back to the parent page, which adjusts the iFrame’s size. This communication is done using Adobe Flash.
How does it determine my widget’s size?
It looks at a combination of things. One thing to note is that it often chooses the narrowest possible width. In order to keep your widgets from being too skinny, try wrapping your widget’s content in a DIV and specify a width or min-width.
Does it work for both hosted and remote HTML widgets?
Yes. Though for remote HTML widgets you have to add some Javascript to your page, as explained here.
It’s not sizing my widget correctly!
- Try wrapping your widget’s content in a DIV and specifying one dimension (either width or height). It’s easier for the Widgetbox Javascript to figure out one dimension rather than both.
- Document.writes() are not yet supported. If your widget uses document.writes(), dynamic sizing probably won’t work correctly.
- If your widget is a remote HTML widget, make sure you put the Widgetbox Javascript in your page.
Does it perform consistently across browsers?
In our tests it has. However, like all Javascript, there’s a chance that it won’t. If you find cases where it doesn’t, please notify support.
When I check “size dynamically”, why does my widget suddenly start requiring Adobe Flash?
The communication between the widget’s HTML page inside the iFrame and the parent page requires Flash. Using Flash is the only way to avoid cross domain scripting issues. This is very simple Flash. Flash is available on 98 to 99% of all web browsers, according to Adobe.