/    Sign up×
Community /Pin to ProfileBookmark

Problems with page height IE7

I have an intranet here at work where I am using an index page that has the content pages in an iframe, so I can keep my menus from always reloading. Well for some reason in IE 7 my code I use to dynamically size the page doesn’t want to work. I think this has something to do with my CSS code I am generating with JavaScript, and was wondering if anyone knew a work around for this.

Attaching the code, Thanks in advance.
Marc

<%@ Register TagPrefix=”componentart” Namespace=”ComponentArt.Web.UI” Assembly=”ComponentArt.Web.UI” %>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd“>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title>Burr &amp; Forman – Intranet</title>
<link href=”baseStyle.css” type=”text/css” rel=”stylesheet”>
<link href=”menuStyle.css” type=”text/css” rel=”stylesheet”>
<style type=”text/css”>
.Myframe {min-height:expression(document.body.clientHeight – 38 + “px”);}
.style1 {
font-size: 14px;
font-weight: bold;
color: #FFFF00;
}
</style>
</head>
<body style=”min-height:100%;width:100%;margin:0px;”>
<FORM style=”margin:0px;padding:0px; ” method=GET action=”http://www.google.com/search“>
<div style=”left:0px;min-height:10px;width:100%;”>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#081527″>
<tr>
<td width=”150px” style=”text-align:center;”>
<a href=”http://intranet/dotnetcodeintra/code/aspnetsearch.aspx” style=”color:#FFFF00;font-size:14px;font-weight:bold;”>
Search</a>
</td>
<td style=”color:#FFFFFF;text-align:right;”>
<%
dim dtmDate as datetime
dtmDate = datetime.now()
response.Write(dtmdate.tostring(“MMMM dd, yyyy”))
%>
&nbsp;
</td>
</tr>
<tr>
<td class=”Home”>
<a href=”http://intranet/index.aspx”>Home</a>
</td>
<td>
<ComponentArt:Menu id=”TopMenu” width=”100%” CssClass=”TopMenuBar”
DefaultGroupCssClass=”TopMenuGroup” SiteMapXmlFile=”topmenuData.xml”
DefaultItemLookID=”TopItemLook” DefaultGroupItemSpacing=”1″ ExpandDelay=”100″
ImagesBaseUrl=”images/” EnableViewState=”false” runat=”server”>
<ItemLooks>
<ComponentArt:ItemLook LookID=”TopItemLook” CssClass=”TopMenuItem”
HoverCssClass=”TopMenuItemHover” ActiveCssClass=”TopMenuItemActive”
ExpandedCssClass=”TopMenuItemExpanded” LabelPaddingLeft=”5″
LabelPaddingRight=”15″ LabelPaddingTop=”3″ LabelPaddingBottom=”3″ />
</ItemLooks>
</ComponentArt:Menu>
</td>
</tr>
</table>
</div>
<script language=”javascript”>
document.writeln(‘<div style=”left:0px?43px;background-color:#081527;width:150px;position:absolute;min-height:’ + (document.body.clientHeight – 42) + ‘px”>’);
</script><br>
<center><font color=”#FFFFFF”><strong>Daily Links</strong></font></center><br>
<ComponentArt:Menu id=”Menu” CssClass=”MenuBar” width=”150px” Orientation=”vertical”
DefaultGroupCssClass=”MenuGroup” SiteMapXmlFile=”menuData.xml”
DefaultItemLookID=”DefaultItemLook” DefaultGroupItemSpacing=”1″ ExpandDelay=”100″
ImagesBaseUrl=”images/” EnableViewState=”false” runat=”server”>
<ItemLooks>
<componentart:ItemLook HoverCssClass=”TopItemHoverNo” LookId=”TopItemNo”
CssClass=”TopItemNo” ActiveCssClass=”TopItemActiveNo”
ExpandedCssClass=”TopItemExpandedNo”></componentart:ItemLook>
<componentart:ItemLook HoverCssClass=”TopItemHover” LookId=”TopItemLook”
CssClass=”TopItem” ActiveCssClass=”TopItemActive”
ExpandedCssClass=”TopItemExpanded”></componentart:ItemLook>
<ComponentArt:ItemLook LookID=”DefaultItemLook” CssClass=”MenuItem”
HoverCssClass=”MenuItemHover” ActiveCssClass=”MenuItemActive”
ExpandedCssClass=”MenuItemExpanded” LabelPaddingLeft=”5″
LabelPaddingRight=”15″ LabelPaddingTop=”3″ LabelPaddingBottom=”3″ />
</ItemLooks>
</ComponentArt:Menu>
<br><Br><br>
<center>
<!– Search Google –>
<input type=hidden name=ie value=iso-8859-1>
<input type=hidden name=oe value=iso-8859-1>
<INPUT style=”margin-bottom:6px; ” TYPE=text name=q size=19 maxlength=255 value=””><br>
<INPUT type=submit name=btnG VALUE=”Search Google”>
<!– Search Google –>
</center>
</div>
<script language=”javascript”>
document.writeln(‘<div style=”left:151px;top:43px;width:’ + (document.body.clientWidth – 155) + ‘px;background-color:white;position:absolute;min-height:’ + (document.body.clientHeight – 45) + ‘px”>’);
</script>
<iframe id=”MainFrame” height=”100%” width=”100%” name=”MainFrame” src=”main.aspx”>
Your browser does not support IFRAMES, please contact Help Desk.
</iframe>
</div>
</form>
</body>
</html>

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@_Aerospace_Eng_Dec 07.2006 — Post the code without all of the server side stuff please.
Copy linkTweet thisAlerts:
@MTownsendauthorDec 07.2006 — <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Intranet</title>

<link href="baseStyle.css" type="text/css" rel="stylesheet">

<link href="menuStyle.css" type="text/css" rel="stylesheet">

<style type="text/css">

.Myframe {min-height:expression(document.body.clientHeight - 38 + "px");}

.style1 {

font-size: 14px;

font-weight: bold;

color: #FFFF00;

}

</style>

</head>

<body style="min-height:100%;width:100%;margin:0px;">

<FORM style="margin:0px;padding:0px; " method=GET action="http://www.google.com/search">

<div style="left:0px;min-height:10px;width:100%;">

<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#081527">

<tr>

<td width="150px" style="text-align:center;">

<a href="http://intranet/dotnetcodeintra/code/aspnetsearch.aspx" style="color:#FFFF00;font-size:14px;font-weight:bold;">

Search</a>

</td>

<td style="color:#FFFFFF;text-align:right;">

<!-- Code for Date -->

</td>

</tr>

<tr>

<td class="Home">

<a href="http://intranet/index.aspx">Home</a>

</td>

<td>

<!-- Code for Top Menu -->

</td>

</tr>

</table>

</div>

<script language="javascript">

document.writeln('<div style="left:0px?43px;background-color:#081527;width:150px;position:absolute;min-height:' + (document.body.clientHeight - 42) + 'px">');

</script><br>

<center><font color="#FFFFFF"><strong>Daily Links</strong></font></center><br>

<!-- Code for Left Menu -->

<br><Br><br>

<center>

<!-- Search Google -->

<input type=hidden name=ie value=iso-8859-1>

<input type=hidden name=oe value=iso-8859-1>

<INPUT style="margin-bottom:6px; " TYPE=text name=q size=19 maxlength=255 value=""><br>

<INPUT type=submit name=btnG VALUE="Search Google">

<!-- Search Google -->

</center>

</div>

<script language="javascript">

document.writeln('<div style="left:151px;top:43px;width:' + (document.body.clientWidth - 155) + 'px;background-color:white;position:absolute;min-height:' + (document.body.clientHeight - 45) + 'px">');

</script>

<iframe id="MainFrame" height="100%" width="100%" name="MainFrame" src="main.aspx">

Your browser does not support IFRAMES, please contact Help Desk.

</iframe>

</div>

</form>

</body>

</html>
Copy linkTweet thisAlerts:
@_Aerospace_Eng_Dec 07.2006 — And your stylesheets?
Copy linkTweet thisAlerts:
@MTownsendauthorDec 07.2006 — Sorry, long week.

Here is baseStyle.css, the other one just controls the looks of the menu


body

{

background-color:White;

font-family:Verdana;

font-size:11px;

color:#3F3F3F;

}

a

{

color:#DD3409;

text-decoration:none;

}

a:hover

{

color:#DD3409;

text-decoration:none;

}

ul

{

list-style-image: url(images/bullet.gif);

list-style-type:square;

list-style-position:outside;

margin-left:18px;

margin-top:5px;

color:#666666;

padding-left:2px;

}

ol

{

list-style-position:outside;

margin-left:25px;

margin-top:5px;

}

h1

{

font-family:Verdana;

font-weight:bold;

font-size:18px;

color:#3F3F3F;

margin-top:12px;

margin-bottom:40px;

}

h2

{

font-family:Verdana;

font-weight:bold;

font-size:18px;

color:#3F3F3F;

margin-top:15px;

margin-bottom:15px;

}

h3

{

font-family:Verdana;

font-weight:bold;

font-size:12px;

margin-top:2px;

margin-bottom:2px;

}

.Home

{

text-align:center;

text-decoration:none;

color:#FFFFFF;

font-family:verdana;

font-size:13px;

font-weight:bold;

background-color: #99A3A6;

}

.Home a:link

{

color:#FFFFFF;

}

.Home a:visited

{

color:#FFFFFF;

}

.Home a:hover

{

color:#FFFF00;

}

.TopNavLink

{

font-size:10px;

color:#3F3F3F;

}


.WelcomeTitle

{

font-family:Verdana;

font-size:23px;


font-weight:900;

letter-spacing:-0.2mm;

margin-top:10px;

margin-bottom:20px;

}

.MainText

{

font-size:11px;

}

.SmallText

{

font-size:10px;

}

.Hint

{

color:Red;

}

.DemoArea

{

border:1px silver solid;

padding:8px;

background-color:#F6F6F6;

}

.AboutBox

{

border:1px #E6E6E6 solid;

background-color:#DDDDDD;

background-image: url(images/about_background.gif);

}

.SidePanel

{

padding: 10px;

border:1px;

border-color:#AAAAAA;

border-style: solid;

background-color:#F3F3F3;

font-size:10px;

color:#666666;

}


.DemosNavFrame

{

padding: 0px;

border:1px;

border-color:#AAAAAA;

border-style: solid;

background-color:#F3F3F3;

overflow:hidden;

}

.DemosNav

{

overflow:hidden;

}

.DemoCategory

{

color:black;

font-family: verdana;

font-size: 10px;

font-weight:bold;

cursor: default;

}

.DemoCategoryOver

{

color:black;

font-family: verdana;

font-size: 10px;

font-weight:bold;

text-decoration:underline;

cursor: default;

}

.Demo

{

font-family: verdana;

font-size: 10px;

padding: 1px;

padding-left:2px;

padding-right:2px;

border:1px;

border-color:#F3F3F3;

border-style: solid;

cursor: default;

}

.DemoHover

{

font-family: verdana;

font-size: 10px;

padding: 1px;

padding-left: 2px;

padding-right: 2px;

background-color:#cccccc;

border:1px;

border-color:gray;

border-style: solid;

cursor: default;

}

.DemoSelected

{

font-family: verdana;

font-size: 10px;

padding: 1px;

padding-left: 2px;

padding-right: 2px;

background-color:#FFFFFF;

border:1px;

border-color:gray;

border-style: solid;

cursor: default;

}

input

{

font-family: verdana;

font-size: 11px;

}

select

{

font-family:Verdana;

font-size:11px;

}
Copy linkTweet thisAlerts:
@_Aerospace_Eng_Dec 07.2006 — Hmm I suggest you read this mainly the part about posting code

http://www.webdeveloper.com/forum/misc.php?do=bbcode
×

Success!

Help @MTownsend spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...