[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Milton

4/21/2004 3:14:00 PM

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
Milton_Snider@ao.uscourts.gov


3 Answers

Stefan B. Rusynko

4/21/2004 3:20:00 PM

0

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

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/news...
_____________________________________________


"Milton Snider" <miltonsnider@yahoo.com> wrote in message news:eCg9aN7JEHA.4052@TK2MSFTNGP11.phx.gbl...
| 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
| Milton_Snider@ao.uscourts.gov
|
|


Milton

4/23/2004 12:55:00 PM

0

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
Milton_Snider@ao.uscourts.gov

"Skydolphin" <anonymous@discussions.microsoft.com> wrote in message news:166C3DDD-BB91-4475-9B34-AA8460D32CB9@microsoft.com...
> You can use javascript to resize a frame.
> This would remove the middle frame.
> parent.document.all("middleFrame").rows="20%,*,80%"
>
> This would reduce the middle frame.
> parent.document.all("middleFrame").rows="20%,10%,70%"
>
> Rhonda

Milton

4/23/2004 2:02:00 PM

0


"Milton Snider" <miltonsnider@yahoo.com> wrote in message news:eituuITKEHA.2472@TK2MSFTNGP10.phx.gbl...
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
Milton_Snider@ao.uscourts.gov

"Skydolphin" <anonymous@discussions.microsoft.com> wrote in message news:166C3DDD-BB91-4475-9B34-AA8460D32CB9@microsoft.com...
> You can use javascript to resize a frame.
> This would remove the middle frame.
> parent.document.all("middleFrame").rows="20%,*,80%"
>
> This would reduce the middle frame.
> parent.document.all("middleFrame").rows="20%,10%,70%"
>
> Rhonda