Need replacement for IFRAMEs

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

    Need replacement for IFRAMEs


    One of the messages I read here indicated that IFRAMEs are deprecated,
    but did not mention an appropriate html replacement. Can someone
    explain what has replaced it? Thanks.
  • Arne

    #2
    Re: Need replacement for IFRAMEs

    Once upon a time *M.L.* wrote:
    [color=blue]
    > One of the messages I read here indicated that IFRAMEs are deprecated,
    > but did not mention an appropriate html replacement. Can someone
    > explain what has replaced it? Thanks.[/color]

    No HTML, but CSS



    --
    /Arne

    Top posters will be ignored. Quote the part you
    are replying to, no more and no less! And don't
    quote signatures, thank you.

    Comment

    • Spartanicus

      #3
      Re: Need replacement for IFRAMEs

      M.L. <me@privacy.net > wrote:
      [color=blue]
      >One of the messages I read here indicated that IFRAMEs are deprecated,[/color]

      Incorrect, just not allowed under strict doctypes.
      [color=blue]
      >but did not mention an appropriate html replacement. Can someone
      >explain what has replaced it?[/color]

      It hasn't been deprecated, however if you want to know if there is an
      alternative that is allowed under strict then object is the answer.

      Note that including html via object is just as problematic as iframes,
      in fact anything that creates a scrollbar inside the viewport causes
      issues.

      The real solution is to link to another document if you don't want to
      display the full content of another html document in another. Or stop it
      if you think that in-document scrollbars are funky.

      --
      Spartanicus

      Comment

      • dwight.stegall@gmail.com

        #4
        Re: Need replacement for IFRAMEs

        If you are trying to load other pages into your current page then
        Iframe is the only way to do that. If you simply want to section off a
        portion of your page so it will scroll then you can use style sheets
        like below.

        <div style="width:50 0px; height:200px; overflow:auto;" >
        Your content goes here.
        </div>

        I have seen some articles that say you can use the <object> tag. This
        only works if you ONLY want to load one page into your current page. I
        haven't found any way to use Javascript to load more pages into it.

        For a single page do this.

        <object data="yourpage. html" width="500" height="200"></object>

        Comment

        • Alan J. Flavell

          #5
          Re: Need replacement for IFRAMEs



          On Mon, 4 Jul 2005, M.L. wrote:
          [color=blue]
          > One of the messages I read here indicated that IFRAMEs are deprecated,[/color]

          So check the applicable specification. "deprecated " is a technical term
          with a specific meaning. It's not a matter of some usenaut's opinion.
          [color=blue]
          > but did not mention an appropriate html replacement.[/color]

          Why should there be one? Frames are an attempt by authors to reduce the
          options that are available to the user. The web is an attempt in maximise
          the options that are available to the user. The two are mutually
          exclusive.

          Comment

          • M.L.

            #6
            Re: Need replacement for IFRAMEs

            [color=blue]
            >If you are trying to load other pages into your current page then
            >Iframe is the only way to do that. If you simply want to section off a
            >portion of your page so it will scroll then you can use style sheets
            >like below.
            >
            ><div style="width:50 0px; height:200px; overflow:auto;" >
            >Your content goes here.
            ></div>
            >
            >I have seen some articles that say you can use the <object> tag. This
            >only works if you ONLY want to load one page into your current page. I
            >haven't found any way to use Javascript to load more pages into it.
            >
            >For a single page do this.
            >
            ><object data="yourpage. html" width="500" height="200"></object>[/color]

            I'd like to thank you, Spartanicus, and Arne for your prompt replies.
            I'll probably stick with the IFRAME solution, but will definitely try
            the OBJECT and DIV methods as an experiment. Thanks everyone.

            Comment

            Working...