?
Solved

iframe with Netscape

Posted on 2003-02-25
9
Medium Priority
?
217 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
  • 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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
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

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
When you put your credit card number into a website for an online transaction, surely you know to look for signs of a secure website such as the padlock icon in the web browser or the green address bar.  This is one way to protect yourself from oth…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

621 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