PDA

View Full Version : I-Frames - browsers that do not support it



trenzterra
May 6th, 2002, 22:32
Don';t know whether its wrong forum, but then more ppl answer here.

Question: Does browsers that don't support i-frames return an error message or the i-frames just don't show up?

Lawrence
May 6th, 2002, 23:00
Browsers that do not support iframes typically do not return error messages.

Instead, the browser reads the html that is within the <iframe></iframe> tags.

HTH

anhedonia
May 6th, 2002, 23:54
Doesn't it just show up as a blank cell?

Lawrence
May 7th, 2002, 00:32
When I view the following url in Internet Explorer, I see yahoo.com inside the iframe:

http://www.oversee.net/misc/lawrenceng/iframe.html

When viewed inside the non-iframes enabled netscape 4.x, I see "Iframes is not supported".

Here is the html:



<html>
<head>
<title>Iframe Test</title>
</head>

<body bgcolor=black>
<IFRAME border=0 marginWidth=0 marginHeight=0 src="http://www.yahoo.com" frameBorder=1 width=300 scrolling=yes height=300>
<font color="white">Iframes is not supported</font>
</IFRAME>
</body>
</html>


Does anyone else see something different?

trenzterra
May 7th, 2002, 08:15
wish i could put a frame in replacement of an i-frame within the tags.

Lawrence
May 7th, 2002, 10:49
Have you looked into ilayers?

It produces a similar effect as iframes, although many find it much more difficult to manage.

Dusty
May 7th, 2002, 12:51
If you're talking about the iFrame you've got at http://trenzterra.hostingextreme.com/, that can easily be done in iLayers:
<iframe src="top.html" width="95%" height="35" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0">
<ilayer src="top.html" width="95%" height="35">
<a href="top.html">Your browser supports neither iFrames nor iLayers. Click here to see top.html.</a>
</ilayer>
</iframe>But to answer your original question, to a browser that doesn't support iFrames <iframe></iframe> works just like <--------></-------->, the stuff between the tags that's normally invisible to a browser that supports them is shown.

trenzterra
May 8th, 2002, 07:08
does browsers that support frames support ILayers?

Dusty
May 8th, 2002, 14:20
Frames and layers are two different animals.

Netscape 4.x is (to my knowledge) the only browser that supports iLayers. But you can, of course, use both i-Frames and -Layers like my example did and be pretty sure of reaching everybody. The only ones you wouldn't would be the very old browsers and Lynx, for those the link is shown in my example.

trenzterra
May 9th, 2002, 09:30
Originally posted by Dusty
Frames and layers are two different animals.

Netscape 4.x is (to my knowledge) the only browser that supports iLayers. But you can, of course, use both i-Frames and -Layers like my example did and be pretty sure of reaching everybody. The only ones you wouldn't would be the very old browsers and Lynx, for those the link is shown in my example. what about old versions of netscape and my opera users?

meow
May 9th, 2002, 09:51
:eek: GAAAAH! Note it down this time. IFRAME is a supported by IE3+, O4+, Moz/Netcape6.
ILAYER is a totally proprietary Netscape tag. The only use you have for it is to pamper Netscape4.

Stuff the iframe and paste the menu at the top of each page and drink your formula! :p

trenzterra
May 9th, 2002, 20:13
Originally posted by meow
:eek: GAAAAH! Note it down this time. IFRAME is a supported by IE3+, O4+, Moz/Netcape6.
ILAYER is a totally proprietary Netscape tag. The only use you have for it is to pamper Netscape4.

Stuff the iframe and paste the menu at the top of each page and drink your formula! :p I want opera 3 and netscape 3 and netscape 2 what do i use:cry2:

meow
May 10th, 2002, 00:49
Originally posted by meow

Stuff the iframe and paste the menu at the top of each page and drink your formula! :p

trenzterra
May 10th, 2002, 08:32
Originally posted by meow
:(

Dusty
May 10th, 2002, 19:50
Trenz, listen carefully, I'm not going to say this again:

The example I gave will work for all browsers. If they support iFrames, they will see the iFrame. If they support iLayers (i.e. Netscape 4.x), then they'll see the iLayer. If they support neither then they'll see the link. That's the best you're gonna do if you insist on having the menu on a separate page from the content.

Now, Meow's solution is really the best one here. Just put the menu directly on the page. Failing that, use something server-side (e.g. SSI, PHP, etc.) to include the menu on the page. Then there's no compatibility problems. If you still refuse to do that, however, then just copy the code I gave you, use it, and be happy damn it.

trenzterra
May 10th, 2002, 20:58
how do i use the ssi thing

Dusty
May 10th, 2002, 21:02
Your host has to support SSI. If you have access to it, do it like this:

<!--#include virtual="menu.txt"-->

Put the HTML for your menu into a file called menu.txt and put the call above on all your files. Usually you need to rename your files to .shtml for the server to parse for SSI.

meow
May 10th, 2002, 21:02
Trenz...either you use iframes, frames or SSI you need to paste some tags at the top of the pages. Why not simply paste the menu? You make it transparent anyway -> you don't use the effect iframe can give.

Basically SSI can insert the content of a text file at the point you put an include tag. You have the menu code in one file and the server inserts it before it serves the page.

trenzterra
May 10th, 2002, 21:14
Originally posted by Dusty
Your host has to support SSI. If you have access to it, do it like this:

<!--#include virtual="menu.txt"-->

Put the HTML for your menu into a file called menu.txt and put the call above on all your files. Usually you need to rename your files to .shtml for the server to parse for SSI. thanks :) My server supports .shtml