Object tag in MSIE: to include HTML / skip it altogether?

  • Thread starter Thread starter S P Arif Sahari Wibowo
  • Start date Start date
S

S P Arif Sahari Wibowo

Hi!

Is there anyway to get object tag in MSIE to include a page from other URI
(as in HTML4 standard)?
That is, similar to what iframe tag do.

If it is not possible, is there anyway to set the object tag so MSIE skip
/ ignore object tag altogether and instead render the content of the
object structure (between opening and closing tag)?

Thanks!
 
Is there anyway to get object tag in MSIE to include a page from other URI
(as in HTML4 standard)?
That is, similar to what iframe tag do.

Yes you can, and another response tells you how, but 'your mileage may
vary'. You may find it works fine for what you want it to do across a
variety of browsers but you may also find it a bit quirky. For example I
found IE6 behaved itself when loading an XHTML document into the object but
not with an HTML 4.01 document. I can't remember if this was a failing to
honour the margins I set for it or point blank refusing to load the page in
(possibly the latter) but whatever it was it was a stopper so I stuck with
iframes.

There is also an issue over how links in the included page would be
interpreted if they are targetted. For example, in an iframe you could use
the "_top" target and the link would break out of all the frames in the
enclosing window. Several browsers would do the same thing with the object.
However at least one, and I can't remember which, will treat the object as a
completely separate canvas and "_top" would be confined to this object.
This latter behaviour is arguably 'correct' according to the somewhat vague
specs but it means that an object is definitely not a one to one replacement
for an iframe.

G.
 
Back
Top