Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

<iframe>... unfashionable or obsolete?

Options
  • 18-06-2004 11:07am
    #1
    Registered Users Posts: 6,315 ✭✭✭


    Is there an alternative to iframes?

    As I understand it they work in IE but not Netscape?

    Incase you don't know these are floating frames in a page.


Comments

  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    The IFRAME works fine in all modern browsers, it was Netscape 4x that didn't support them, and to be perfectly frank if someone is still running Netscape 4x they're going to have bigger problems. However if you absolutely insist on backwards compatibility, you can nest an ILAYER within the IFRAME to achieve the same effect.

    Have a look here for some details. (Scroll down a bit.)

    adam


  • Registered Users Posts: 6,315 ✭✭✭ballooba


    Cheers bawss.


  • Registered Users Posts: 1,268 ✭✭✭hostyle


    It depends. Why are you using the IFRAME? To include data from a seperate page? Or to fit data in a smaller space? there are alternatives for both methods, but as dahamsta said, IFRAMEs are supported in all modern graphical browsers so you don't have to change.


  • Registered Users Posts: 1,746 ✭✭✭pork99


    <iframe> is supported in the XHTML 1.0 Transitional DTD but not in the XHTML 1.0 Strict DTD so eventually it will be obsolete - future versions of XHTML are more likely to be nearer to the Strict DTD.

    I think that's a shame because they allow you to place any alternative content for browsers which don't support it thus <iframe src="yourfile.html"><p>Alternative content</p></iframe>

    I've found them quite handy from time to time


  • Registered Users Posts: 2,031 ✭✭✭colm_c


    An alternative would be to use a CSS implementation using overflow: auto; which would mean that it would be compatible with all browsers apart from v4 browsers.


  • Advertisement
  • Registered Users Posts: 1,268 ✭✭✭hostyle


    Originally posted by colm_c
    An alternative would be to use a CSS implementation using overflow: auto; which would mean that it would be compatible with all browsers apart from v4 browsers.

    Correct. If what youre trying to achieve is include a HTML page within another, then it doesn't help at all.


Advertisement