IFrames?

They have: 4 posts

Joined: Sep 2003

I need help with IFrames...

Can anyone give me the code for making IFrames? And tell me how to use them to? Thanks to anyone who does.

- Sesshoumaru-Sama

He has: 1,380 posts

Joined: Feb 2002

Why IFrames? Why not a div layer that is widely supported instead? IFrames tend to be IE only, I believe. But, people, correct me if I am wrong.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

iframes are a standard, and supported by Netscape 6+, IE 4+, Opera 5+ (I think) and all newer browsers like Mozilla, Safari, et cetera.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Its used the same as frames, just "include" the file into the src="" area.

He has: 1,380 posts

Joined: Feb 2002

i was wrong, i apologize. i thought netscape supported "layer" and IE was "iframe"?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Netscape does support layer, and you've mistaken the controversy (which is years old, btw) with layer/div.

Div is the standard, layer and ilayer were ditched. ilayer was the iframe equivalent, and it WAS IE only at first, but was adopted as a standard.

Divs are the better choice in many ways, however.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

It has been many-a-year since I have had an argument about frames, because of this I have completely forgotten why they are evil - this seems like a good time for Suzanne to elaborate on her point about Div's being better... Laughing out loud

a Padded Cell our articles site!

They have: 461 posts

Joined: Jul 2003

i think the initial issue with iframes was that it was something M$ made so that a site would break in everything else.

personally there's one time i think frame SHOULD be used instead of divs: when you have a completely static navigation area

i've found that if you set your browser to always check the remote insteadof your cache, or if that header is sent and your browser doesn't override it, that's the ONLY time you on't have to dl thenavigation images all over again every single time

POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Heh, here's why DIVs are better:

1. all the content is on one page (in one temporary file) so it's accessible to any browser, user agent, or printer, in any fashion, through judicious use of CSS

2. isn't #1 enough?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.