Solved

How to work with IFRAM? need help!!

Posted on 2003-11-24
11
243 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
Technology Partners: 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is the normal amount of queries 5 84
installing and using WTP plugin eclipse MARS 3 134
Select distinct 25 119
Grunt Copy file to another destination. 1 76
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
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 one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

740 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