Solved

Converting Frames page to iframe

Posted on 2013-12-29
3
1,272 Views
Last Modified: 2013-12-30
I have my website is a frame based site, and I want to change to iframe as frames are going to be deprecated soon (It is already not supported in HTML5), I know it is not one to one transfer, but I do not see how it is possible to define columns and rows, my old frame page is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<FRAMESET cols="10%, 90%">
  <FRAMESET rows="10%, "90%">
      <FRAME name="status" id="status" src="no-status.html" scrolling="no" noresize="noresize" frameborder="0">
      <FRAME  name="menu" id="menu" src="no-menu.html"  scrolling="no" noresize="noresize" frameborder="0">
  </FRAMESET>
  <FRAMESET rows="20%, "80%">
      <FRAME name="logo" id="header" src="header.php"  scrolling="no" noresize="noresize" frameborder="0">
      <FRAME  name="main" id="main" src="login.php"  scrolling="yes" noresize="noresize" frameborder="0">
  </FRAMESET>
  <NOFRAMES>
      Sorry, your browser does not handle frames!
  </NOFRAMES>
</FRAMESET>
</HTML>

Open in new window


   My new iframe file:
<html>

<head>
<title>HTML Test</title>
</head>

<body>
      <iframe name="top" id="top" width="100%" hight="10%" srolling="no" frameborder="0" seamless>
      <iframe name="status" id="status" width="30%" hight="100%" src="status.php" scrolling="no" frameborder="0" seamless>
       <p>iframes are not supported by your browser.</p></iframe>
      <iframe  name="logo" id="logo" width="30%" hight="100%" src="header.php"  scrolling="no" frameborder="0" seamless>
       <p>iframes are not supported by your browser.</p></iframe>
 </iframe>
      <iframe name="bottom" id="bottom" width="100%" hight="90%" srolling="no" noresize="noresize" frameborder="0" seamless>
      <iframe name="menu" id="menu" width="20%" hight="100%" src="menu.php" scrolling="no" frameborder="0" seamless>
       <p>iframes are not supported by your browser.</p></iframe>
      <iframe  name="main" id="main" width="80%" hight="100%" src="login.php"  scrolling="no" frameborder="0" seamless>
       <p>iframes are not supported by your browser.</p></iframe>
 </iframe>


</body>
</html>

Open in new window


The output of the iframe is horrible were the header.php which is in the logo iframe is not appearing at the top edge of the screen but at the upper third, also the login.php is not shown in the fully but truncated,
Unfortunately using the other alternative (<div>) is not an option for as I am using for different pages different css (as some of them are ready to use to pages) and redesigning the css is a lot of work that is why I am thinking in the iframe), can some one help me please?
0
Comment
Question by:Ashraf Hassanein
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39745191
You want the header frame to be on the top right?
Just change the width of the top frame to 68%

Change main frame to 100% width

...but you are still using an old fashioned way of making a site, you are going from frames to iframes which is just as bad.
Use iframes for small bits of code you may want to show, e.g. a news feed.  They shouldn't be used to design a site
Unfortunately using the other alternative (<div>) is not an option for as I am using for different pages different css
...then your design is flawed from the start.
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39745848
Agree with GaryC123.  You should redesign the site.  Also, you may want to check the code meticulously.  Spelling errors are usually just ignored.  Example:  hight="10%" should probably be  height="10%" if it is to have any effect.
0
 

Author Comment

by:Ashraf Hassanein
ID: 39746556
Thanks for your support I am trying to redesign using the div.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now