Forum Moderators: open

Message Too Old, No Replies

I cannot view Iframes?

Iframe issue

         

Spikester1

6:57 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



I am using IE 6.0 and when I try to view Iframes, nothing appears.

Below is a short "test" I am trying to run and when I view the iframetest.htm, I simply get a blank screen. Any thoughts on browser settings I need to have set in order to make Iframes work on my machine?

'== this is what I have in my Iframetest.htm file
<html>
<head>
<title>Cost Data</title>
<IFrame src='Test.htm'></IFrame>
</head>
</html>

'== This is my test.htm file
<html>
<head>
<title>Cost Data</title>
<Body>test<Body>
</head>
</html>

jpjones

7:02 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



try adding width and height settings to your iframe tag.

<IFrame src='Test.htm' width="360" height="240"></IFrame>

Some browsers are "broken" and so need telling precisely what to do.

JP

jimbeetle

7:12 pm on Mar 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Unless it was a typo also take the body out of the head element and add the '/' to the closing body tag. It will sometimes display the way you have it but more often break.

<html>
<head>
<title>Cost Data</title>
</head>
<Body>test</Body>
</html>

Spikester1

7:14 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



I tried adding the height/width but still see nothing.

I've tried several web pages that use Iframes and they will not show in my browser?

Thanks!

Spikester1

7:17 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



Yes the closing "/" on the body was a typo, thanks. I added it but still get a blank page?

Spikester1

7:32 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



I tried this same code on another machine and it works fine?

Sounds like something specific to my machine?

DrDoc

8:04 pm on Mar 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problem is none of the above. Instead, the <iframe> tag is misplaced. It is not a <head> element, and should go in the <body> section.

Try this:

<html>
<head>
<title>Cost Data</title>
</head>
<body>
<iframe src='Test.htm'></iframe>
</body>
</html>

Spikester1

8:12 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



I believe you are right, DrDoc on the placement of the Iframe line but after changing it, I still see a blank screen instead of a box with "test" in it. I tried this same code on another machine which is a win 2000 running IE6 and it works fine. My machine, win 98 IE6, won't display iframes at all. I've went to a couple sites that had Iframe tests and those would not show either. I've checked my browser/security settings and I don't see anything in there that would cause this but I'm open to suggestions.

Thanks for the ideas, any further help would be appreciated!

DrDoc

9:15 pm on Mar 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you also edit the test page, as suggested above, by moving the <body> out of the <head>?

<html>
<head>
<title>Cost Data</title>
</head>
<body>test</body>
</html>

Spikester1

9:41 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



Yes, I edited the Test.htm also and removed the "body" out of the "head", with no results.

I just downloaded the "Opera" browser and tried it in there, in Opera I can see the word "test" (which is more then I can see in IE6) but still I don't see the frame around it?

Spikester1

10:19 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



Well, I found the issue with my iframes not displaying... long story short, I had a .CSS file on my system and had the option checked to use a stylesheet under internet options/Accessibility button.

The .css file basically turned off the use of Iframes! I forgot I had set that up a long time ago to get rid of some ads on a webpage I view.

Thanks for all the help!