On the flip side, iframes aren't supported by Blackberry browsers, whereas <object> is. I was seeking a way to make the same content work across the board, even for my BBerry-wielding users, and finally found it last night.
I stuck this in my placeholder:
Code:
<!--[if IE]>
<object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" type="text/html"
data="content_to_display.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="content_to_display.php" style="width:100%;height:100%;">
<p>Please tell the webmaster you saw this, something is wrong.</p>
</object>
<!--><![endif]-->
It works beautifully, even on Blackberries. Only limitation is the content you bring in must be local to the web server for it to work in IE. You can bring in remote URLs for any other browser to see, but Microsoft (as usual) screwed up their implementation of <object>.
I needed this for a golf league web site where the player data are generated as HTML snippets by a database application. I can bring that data into a Xara-generated static page, but until now was using iframes for the job and several members want to see their handicaps and previous scores on their BBerries. The iframe implementation required them to make an extra click to get to the data directly; now there'll be no need.
I love finding cool uses for placeholders.
Bookmarks