Solved

How to work with IFRAM? need help!!

Posted on 2003-11-24
11
244 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
[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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
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:
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…

751 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