Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Iframe files not dispaying

Posted on 2006-07-18
6
304 Views
Last Modified: 2006-11-18
hello experts:

I am using iframe combined with div tag for a document but it only display the 1st 'iframe' and not the 2 others(see code below). however it sometimes displays  after i 'clear history' and 'delete cookies'.
I don't want my users to have to do that so please help( i tried unsuccessfully playing with z index )

the code is below. thanks

<body >
<div id="Layertop" style="position:absolute; left:0px; top:0px; width:100%; height:151px; overflow:hidden">
<iframe width="100%" height="151" scrolling="no" src="top_newok.htm" marginHeight="0" marginWidth="0" frameborder="0"></iframe>
</div>
<div id="Layerlef" style="position:absolute; left:0px; top:151px; width:177px; height:100%; overflow:hidden">
<iframe width="177" height="100%" scrolling="no" src="left.htm" marginHeight="0" marginWidth="0" frameborder="0"></iframe>
</div>
<div id="Layerrig" style="position:absolute; left:177px; top:151px; width:100%; height:100%; overflow:hidden">
<iframe width="100%" height="100%" scrolling="no" src="botm_det.htm" marginHeight="0" marginWidth="0" frameborder="0"></iframe>
</div>
</body>
0
Comment
Question by:essenam
  • 3
6 Comments
 
LVL 5

Expert Comment

by:Jezcentral
ID: 17137401
It shows fine on my PC. Try viewing it with another computer.

P.S. If checking anything in IE, close down the browser and open it up again (drag the icon in the address bar on the desktop to have a ready-made shortcut) whenever you have just made a change to the code. This will prevent caching problems, which I think is what you have.

Jezcentral.
0
 
LVL 5

Expert Comment

by:Jezcentral
ID: 17144523
Either that, or you  have some error that prevents the page from rendering. Is there any javascript (the usual suspect). What is the rest of the code like?

Jezcentral.
0
 

Author Comment

by:essenam
ID: 17225063
I've been testing with different browsers with the same result.

Can you let me know how I can force the last 2 iframes on top(i'm novice at playing with z-index)
0
 
LVL 5

Accepted Solution

by:
Jezcentral earned 250 total points
ID: 17227341
I've tested this in IE and Firefox and it works in both. I assume you are putting in the other tags:

<html>
<head>
      <title>Test page</title>
</head>
<body >
<div id="Layertop" style="position:absolute; left:0px; top:0px; width:100%; height:151px; overflow:hidden">
<iframe width="100%" height="151" scrolling="no" src="top_newok.htm" marginHeight="0" marginWidth="0" frameborder="0"></iframe>
</div>
<div id="Layerlef" style="position:absolute; left:0px; top:151px; width:177px; height:100%; overflow:hidden">
<iframe width="177" height="100%" scrolling="no" src="left.htm" marginHeight="0" marginWidth="0" frameborder="0"></iframe>
</div>
<div id="Layerrig" style="position:absolute; left:177px; top:151px; width:100%; height:100%; overflow:hidden">
<iframe width="100%" height="100%" scrolling="no" src="botm_det.htm" marginHeight="0" marginWidth="0" frameborder="0"></iframe>
</div>
</body>
</html>

If you are, can you show me the code for one of the top_newok.htm, left.htm or botm_det.htm pages? The code fragment you gave at the top of the page is solid (as long as it's a fragment :) ). I can't see any problems with it. Your tags are closed, and the styles are used correctly.

Jezcentral.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Read about why website design really matters in today's demanding market.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The viewer will learn how to count occurrences of each item in an array.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question