IFrame compatible browsers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff

    IFrame compatible browsers

    Hi All:

    I'm writing a page that I'm going to need some assistance with, using
    the IFrames... I know how to use them, but what I'd like to do is
    write a page (using ASP here BTW) that has 2-5 IFrames on the page
    (different content) BUT the trick is that I need to find a method of
    providing the same information OUTSIDE of the IFrame for people who
    have older browsers.

    Any thoughts? I was thinking to simply detect the browser type/version
    and display different content which is fine, I just need to know which
    are compatible with IFrames and which aren't. I can't seem to find a
    list anywhere...

    Any thoughts or assistance are gratefully appreciated.

    Jeff
  • Darin McGrew

    #2
    Re: IFrame compatible browsers

    Jeff <jeff@castingwo rkbook.com> wrote:[color=blue]
    > Any thoughts? I was thinking to simply detect the browser type/version
    > and display different content which is fine, I just need to know which
    > are compatible with IFrames and which aren't. I can't seem to find a
    > list anywhere...[/color]

    You don't need browser sniffing. Just include alternative content in the
    IFRAME element. See the first example at
    A description of HTML 4's IFRAME element for inline frames.


    Better yet, use some other mechanism to assemble content from multiple
    sources into a finished page. See also
    The Web Design Group's Web Authoring FAQ addresses frequently asked questions related to HTML, images, style sheets, and other Web authoring issues.


    Besides, some browsers can be configured to support inline frames or not to
    support inline frames, so in this case, browser sniffing is even more
    unreliable than it normally is.
    --
    Darin McGrew, mcgrew@stanford alumni.org, http://www.rahul.net/mcgrew/
    Web Design Group, darin@htmlhelp. com, http://www.HTMLHelp.com/

    "If you aren't part of the solution, then you are part of the precipitate."

    Comment

    • David Dorward

      #3
      Re: IFrame compatible browsers

      Jeff wrote:
      [color=blue]
      > I'm writing a page that I'm going to need some assistance with, using
      > the IFrames...[/color]

      Why? Frames of any sort are rarely the best (or even a good) solution for a
      problem.
      [color=blue]
      > BUT the trick is that I need to find a method of
      > providing the same information OUTSIDE of the IFrame for people who
      > have older browsers.[/color]

      <iframe ...>
      Alternative content
      </iframe>

      --
      David Dorward <http://dorward.me.uk/>

      Comment

      • Alan J. Flavell

        #4
        Re: IFrame compatible browsers

        On Mon, 22 Dec 2003, Jeff wrote:
        [color=blue]
        > IFrames... I know how to use them[/color]

        [If you did, you'd be ahead of the W3C, as we will see...]
        [color=blue]
        > BUT the trick is that I need to find a method of
        > providing the same information OUTSIDE of the IFrame for people who
        > have older browsers.[/color]

        Why does everyone seem to ask for a "trick", before even finding out
        whether there's a properly-engineered solution?
        [color=blue]
        > Any thoughts?[/color]

        Like, er, read the HTML specification, with the usual critical
        attention to detail.

        [color=blue]
        > I was thinking to simply detect the browser type/version[/color]

        Well, stop thinking that at once! It can't be done if you're
        otherwise conforming to web best practice (think: proxy caches), and
        even if you _do_ get a user agent string, it could easily be a browser
        pretending to be something else.
        [color=blue]
        > I just need to know which are compatible with IFrames and which
        > aren't.[/color]

        The *browsers* already know whether they support iframes or not.
        There's no need for you to duplicate this knowledge. Just supply the
        properly marked-up content.

        See where the W3C sets this terrible example in their spec? -

        <IFRAME src="foo.html" width="400" height="500"
        scrolling="auto " frameborder="1" >
        [Your user agent does not support frames or is currently configured
        not to display frames. However, you may visit
        <A href="foo.html" >the related document.</A>]
        </IFRAME>

        Any discerning author can see that the content of the element could be
        worded so as to adapt seamlessly to the situation. As TimBL himself
        said way back, and it's still a good principle: "don't mention the
        mechanics". And that's precisely what is wrong with the above
        example, in my estimation. http://www.w3.org/Provider/Style/

        So, put your friendly content in there. Don't give the reader the
        impression that you're dissatisfied with their browser - you aren't
        going to win any new friends that way.

        Comment

        Working...