Alternative to &lt iframe /&gt

23 Jan

My current MOSS 2007 client needs a large XSL transformation that generates a friendly set of nested tabs to display some BDC information after drilling into the search results. A new requirement came up, to display some aspx pages in iframes on their own tabs.

For various reasons an iframe wasn’t really a possible solution for embedding an external resource, but there is a great alternative: The Object Tag.

If you use the object tag in this way you can achieve the same functionality as an iframe, with pretty reasonable browser compatibility.

The only catch is that the parent document has to be in quirks mode to achieve a frame without a bevel or border.

You’ll want to apply some styling to the child page to avoid the borders:

Leave a Reply

Your email address will not be published. Required fields are marked *