SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Brevity is greatly overrated brandaggio's Avatar
    Join Date
    Dec 2005
    Posts
    1,424
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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:
    http://simbology.com/code-examples/object-embedded.html

    I have no problem just using an <iframe> as it will perform as I expect, but so is (supposedly) this darn <object>.

  2. #2
    Brevity is greatly overrated brandaggio's Avatar
    Join Date
    Dec 2005
    Posts
    1,424
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A shout out to all the (X)HTML Gurus out there...

    Am I missing something here or is the reality that the "iframe", itself a subset of the "object", is better supported than "object"?

    Much to my chagrin, this is what my testing has shown so far.

  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    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

  4. #4
    Brevity is greatly overrated brandaggio's Avatar
    Join Date
    Dec 2005
    Posts
    1,424
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by zcorpan
    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.
    Sounds like a conundrum.

    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.
    Oy vey...what a state of affairs with this gross mismanagement.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •