Solved

How to work with IFRAM? need help!!

Posted on 2003-11-24
11
242 Views
Last Modified: 2010-04-06
I need some help with dividing page into couple sections.
Are you familiar with windows update page?

http://v4.windowsupdate.microsoft.com/en/default.asp

This page is divided into 3 parts. All of them will adjuct it's hight and width according to window size. And it seems to me that it's something like IFRAME. But I can't set IFRAME's height to percentage height.
I can only set <IFRAME height=300>, not <IFRAME height=40%>.
If I can set it to percentage, then the size of the fram will adjust according to window size.

How can I make this happen?
Can someone tell me how to make a page like Windows Update page?

Thank you.
0
Comment
Question by:tsongwei
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 15

Expert Comment

by:Timbo87
ID: 9813990
Which browser are you using?

<iframe height="40%" src="url.htm">
</iframe>

Works in IE 6.0. Windows Update actually uses conventional frames with relative width/height percentages and not IFRAMEs.
0
 
LVL 15

Accepted Solution

by:
Timbo87 earned 125 total points
ID: 9814018
This is how the Windows Update frameset is done:

<frameset  rows="80, *, 24" border="0">
<frame name="eToolbar" src="mstoolbar.asp" noresize="yes" style="border-bottom: 1px solid white;" />
<frameset  cols="250,*" framespacing="3">
<frame name="eTOC" src="toc.asp?corporate=false&error=1&" /><frame name="eContent" src="error.asp" />
</frameset>
<frame name="eFooter" src="/en/footer.asp" noresize="yes" style="border-top: 1px solid white;" />
</frameset>
0
 
LVL 31

Expert Comment

by:GwynforWeb
ID: 9815397
The windows  page  is a complex frame set you probably want some thing like this. (it does not use Iframes, ie inline frames)

<frameset rows= "80,*" border="0">
  <frame name=banner src="http://google.com" >
  <frameset cols= "200,*" border="0">
     <frame name=left src="http://google.com" >
     <frame name=right src="http://google.com" >
  </frameset>
</frameset
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 31

Expert Comment

by:GwynforWeb
ID: 9815610
ie. the windows update page does not use Iframes.
0
 
LVL 15

Expert Comment

by:Timbo87
ID: 9815613
Gwyn, I've already posted what you said above.
0
 
LVL 3

Expert Comment

by:etain
ID: 9815997
using table with inframe

<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" height="430" valign="top"  >
   <iframe height="100%" width="100%" src="url" id="framedoc" ></iframe></td>
  </tr>
 </table>
0
 
LVL 31

Expert Comment

by:GwynforWeb
ID: 9818397
Timbo87,
       No you have not, I count 4 frames in your frame set there are 3 in mine. I sense that tsongwei wants a 3 frame  banner/left/right frame set up and my frame set up is the usual form for that
0
 

Author Comment

by:tsongwei
ID: 9818820
Thanks everyone.
But the scroll bar in Windows Update page is not attached to right side, there is some pace between the scroll bar and right border of the window.
How is that done?

If I put a IFRAME in a table, can I make it 40% of total hight of the page?

Thank you.
0
 
LVL 15

Expert Comment

by:Timbo87
ID: 9820683
You can add space from the right scroll bar by adding this into your CSS.

If you already have a body class defined, add "margin-right: 10px;" without the quotes.

If you have no CSS or no body class defined, add this to the head of your document:

<style type="text/css">
body {margin-right: 10px;}
</style>
0
 
LVL 15

Expert Comment

by:Timbo87
ID: 9821274
You can't use relative height with an IFRAME in a table. It takes 40% of the height of the cell it's in, not of the whole document.
0
 
LVL 3

Expert Comment

by:etain
ID: 9824533
Set IFRAME to 100% width and height.
The Table is use to set the actual width and height.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
PHP parse error 7 61
WordPress/WooCommerce security best practices? 2 104
Microsoft Edge 9 102
WCAG audit tools 1 90
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

808 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