resize frame

M

Milton Snider

Hello,
I have a default.asp frames page which contains 3 horizontal frames. The
top frame is only 20% in height, the middle frame is about 35% and the
bottom frame is 45%. I would like the middle frame to shrink or disappear
altogether when a button in the top frame is clicked so that the bottom
frame can be larger for a larger form. Another button would increase the
size of the middle frame as needed.
Thanks
(e-mail address removed)
 
S

Stefan B Rusynko

You can't dynamically resize / remove frames
- Open a second frameset to replace the original frameset, or make the 2 frames you want to adjust a frameset page and target that
frameset w/ a page that has 1 or 2 framesets in it




| Hello,
| I have a default.asp frames page which contains 3 horizontal frames. The
| top frame is only 20% in height, the middle frame is about 35% and the
| bottom frame is 45%. I would like the middle frame to shrink or disappear
| altogether when a button in the top frame is clicked so that the bottom
| frame can be larger for a larger form. Another button would increase the
| size of the middle frame as needed.
| Thanks
| (e-mail address removed)
|
|
 
M

Milton Snider

I cannot make this work at all. I tested by taking a button and when clicked, running the javascript. The frame sizes do not change at all. My frames are simple as you can see below. The button and script run from the "top" frame and are as follows:

<script language="javascript">

function b1script() {
parent.document.all("main").rows="20%,5%,70%";

}
</script>




<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Bankruptcy CM/ECF Apps</title>
</head>

<frameset rows="20%,*,40%" framespacing="0" border="0" frameborder="0">
<frame name="top" scrolling="no" target="contents" src="top.asp" >
<frame name="main" src="welcome.htm" target="lower" scrolling="auto" >
<frame name="bottom" scrolling="auto" target="contents" src="blank.htm">
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

</html>

thanks
(e-mail address removed)
 
M

Milton Snider

I cannot make this work at all. I tested by taking a button and when clicked, running the javascript. The frame sizes do not change at all. My frames are simple as you can see below. The button and script run from the "top" frame and are as follows:

<script language="javascript">

function b1script() {
parent.document.all("main").rows="20%,5%,70%";

}
</script>




<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Bankruptcy CM/ECF Apps</title>
</head>

<frameset rows="20%,*,40%" framespacing="0" border="0" frameborder="0">
<frame name="top" scrolling="no" target="contents" src="top.asp" >
<frame name="main" src="welcome.htm" target="lower" scrolling="auto" >
<frame name="bottom" scrolling="auto" target="contents" src="blank.htm">
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

</html>

thanks
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top