Forum Moderators: open

Message Too Old, No Replies

iframes - are they supported well cross-browser?

         

schyryll

10:10 am on May 13, 2003 (gmt 0)

10+ Year Member



i would like to know if iframes work for all browsers? tnx! :)

BlobFisk

11:26 am on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, schyryll!

I believe that it is compatibile with IE4+ and Netscape 6+ and Opera 5+.

ShawnR

1:20 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In other words, Netscape V4.x does not support iframes.

Then again, there are many threads in WebmasterWorld arguing the pros and cons of continuing to provide support for NN4.x vs not. And there are also threads arguing the pros and cons of using frames in general, let alone iframes.

Shawn

AWildman

2:21 pm on May 13, 2003 (gmt 0)

10+ Year Member



AND just to complicate things, NN 6x makes you declare a specific height and width on the iframe so if you want a "fluid" layout, you'll have to do some fancy scripting. I've read all sorts of solutions to the NN 4x problem of not using frames, but the one I finally settled on was simply telling the users that if they want to see the site as intended, they need to upgrade (hint, hint). I then made all the content that would normally go in the iframe available to NN4x users via a new window. I simply put links between the opening and closing iframe tags with a target = "_blank". I've had no compliants. In a way, the start page acts as a remote menu for the rest of the site.

tedster

10:22 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Another way to get Netscape 4 compatibility is to wrap <ilayer> tags inside your set of <iframe> tags.

NN4 ignores the iframe tags -- and modern browsers will ignore the ilayer tags, which were only specific to NN4.

However, you can't get scroll bars inside an ilayer, so you need to test your layout well.

<iframe SRC="foo.html">
<ilayer SRC="foo.html"></ilayer>
</iframe>

schyryll

3:22 am on May 16, 2003 (gmt 0)

10+ Year Member



Thanks guys! :)