Okay, in the probably-unlikely reason anyone out there cares about writing code in compliance with XHTML Strict (if this doesn't apply to you then please read no further, there's nothing here to interest you), there is a workaround to make <object> work mostly as it's supposed to in IE, but the page you're linking in cannot be on a remote server.
Let's assume you want to bring in a Wordpress blog installed in a folder off your site's root called my_blog_folder. This is the code to make it appear:
Code:
<!--[if IE]>
<object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" type="text/html"
data="my_blog_folder/index.php" style="width:100%;height:100%;">
<p>Please tell the webmaster you saw this, something is wrong.</p>
</object>
<![endif]-->
<!--[if !IE]><-->
<object type="text/html" data="my_blog_folder/index.php" style="width:100%;height:100%;">
<p>Please tell the webmaster you saw this, something is wrong.</p>
</object>
<!--><![endif]-->
Wrap this in a <div> block styled to the location and size you want the blog to use, and it will create scroll bars as necessary. For further correctness the style elements above could be moved into your CSS sheet quite easily, of course. Since they merely assert 100% of what's already defined in your style sheet their inclusion in the HTML can be a grey area.
Of course you can get the exact appearance and behavior using iframes, but please remember: all along I stipulated HTML Strict compliance. If you don't care about that, then please just move along without comment and leave this thread to those who do care about such things.
Thanks for looking.
|