?
Solved

iframe with Netscape

Posted on 2003-02-25
9
Medium Priority
?
216 Views
Last Modified: 2012-06-27
Having problems with using the iframe tag with Netscape 4.7. I've tried using ilayer> which works with a simple layout, but with the layout below, which includes nested tables, I only see the frame/layer source page in Netscape. Tried the div> tag with absolute position around the ilayer> tag, but it was then nested withing another div> take .. maybe that's why that didn't work either.

Any clues?

btw: some leading <'s maybe missing, seemed to happen when I pasted it, tried to replace them.

<html>
<head>
<body bgColor=#ffffff>

<ilayer>

<div id="logo" STYLE="position:absolute;left:0;top:0">

<table width=700px height=450px border="0" name="toptable">
 <tr>
  <td valign="Top">

   <table cellSpacing="0" cellPadding="0" border="0">
    <tr>
     <td width="190px" valign="top">
      <table cellSpacing="0" cellPadding="0" border="0" name="contents">    
       <tr><td><a href="home.htm" target="display" onMouseOver="imgOn('menu1')" onMouseOut="imgOff('menu1')"><img src="../images/menu_h2.jpg" border="0" name="menu1" alt="Home"></a></td></tr>
       
 
      </table>
     </td>
     <td width="500px" align="right" valign="top">

      <table cellSpacing="0" cellPadding="0" width="450px" border="0">
       <tr>
        <td>
         

         <iframe name="display" marginWidth="0" marginHeight="0" src="home.htm" frameBorder="0" width="450" scrolling="yes" height="296" bgcolor="white">
         
<ilayer name="display" marginWidth="0" marginHeight="0" src="home.htm" width="450" scrolling="yes" height="296" bgcolor="white">
</ilayer>

         </iframe>
        </td>
       </tr>
      </table>

     </td>
    </tr>  
   </table>

  </td>
 </tr>
</table>

</div>

font color="#ffffff">UK, England, Hampshire.</font>

</ilayer>

</body>
</head>
</html>
0
Comment
Question by:ncw
[X]
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
  • 5
  • 4
9 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 800 total points
ID: 8020704
It is not going to work in Netscrap 4.x no matter what you do.  It needs absolute positioning, and NS does not position based on it parent, but rather the body. It's one of the reasons that very few developers even try to support Netscrap 4 anymore.  You have to stay to very simple layouts that do not use the advanced capabilities of modern browsers.

Cd&
0
 
LVL 1

Author Comment

by:ncw
ID: 8020972
Which version of Netscape do you think it might work with?
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 8021038
Netscrap 6 supports Iframe, so the the IE code should work fine for it.  Netscrap 6 is closer to IE than it is to Netscrap 4.  Even Netscrap realized that the old document.layers object was beyond hope.

Cd&
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:ncw
ID: 8024724
Cd&: I've some javascript to detect Netscrap 4 or above (although not to hand at the moment) but I will need to extend that to detect Netscrap 6. Would you have a neat javascript function to do that which you could let me have??

I'm thinking that if I detect n4 or less I will display some unpolite message or redirect to a frameless page, but allow to proceed if n6+.

Nick
0
 
LVL 1

Author Comment

by:ncw
ID: 8025336
This seems to provide the answer to my last comment:
http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20523934.html
0
 
LVL 1

Author Comment

by:ncw
ID: 8058599
COBOLdinosaur: Would you know if Opera, Morzilla, and Netcaptor support iframes? I think Morzilla and Netcaptor use the same engine as Netscape, so I guess not. Perhaps exclusive to IE.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 8060325
All of the mozilla based browsers support iframe.  

Also most of the modern browsers use the DOM1 so you can simplfy browser detection with:

If (document.getElementById)

That will return true for all DOM1 compatible browsers and it means that they support things like innerHTML and iframes.

If you keep your code within the standards it means less chance of a new browser vrsion coming along where you have to fix a bunch of stuff to make it work.

Cd&
0
 
LVL 1

Author Comment

by:ncw
ID: 8127465
Thanks for your help
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 8128180
Glad I could help.  Thanks for the A. :^)

Cd&
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

764 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