Results 1 to 4 of 4
Thread: Object vs. Iframe
Aug 25, 2006, 08:54 #1
Object vs. Iframe
So I have been trying to get an <object> to behave the same as an <iframe>.
In Firefox, it does perform to spec, but do to the lack of a full implementation of <object> in other browsers, it does not.
Please take a look and let me know your thoughts:
I have no problem just using an <iframe> as it will perform as I expect, but so is (supposedly) this darn <object>.
Aug 25, 2006, 15:03 #2
Aug 25, 2006, 15:40 #3
- Join Date
- Dec 2004
- 0 Post(s)
- 0 Thread(s)
iframe is like an embedded browser window. If the server returns an error status code then you will see the response inside the iframe, unlike with object which instead will fall back and show its contents. So object isn't really a replacement for iframe if you don't want the fallback mechanism.
object is like an autodetect element; it can act like an <img>, like an <iframe>, like an <applet>, like an <embed>, and it can even also be a form control. Given that there still is no interoperability between browsers on how to handle <object> after eight years shows that overloading one element to do many different things isn't the best thing to do.Simon Pieters
Aug 25, 2006, 15:54 #4Originally Posted by zcorpan
The older I get the more I realize that is all there really is once you "break the surface".Given that there still is no interoperability between browsers on how to handle <object> after eight years shows that overloading one element to do many different things isn't the best thing to do.