Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames resize when window is resized- advice please

Status
Not open for further replies.

rlatham

Programmer
Aug 23, 2000
51
US
Hello,
What do I need to do to stop that?

I have stated the noresize attribute on the frames.

Thanks in advance.

Ross
 
Show us your frameset HTML.

Have you got percentages in there?

- - picklefish - -

Why is everyone in this forum responding to me as picklefish?
 
This is my code:

Code:
<frameset  rows=&quot;20,80&quot; frameborder=&quot;NO&quot; framespacing=&quot;0&quot;>
    <frame name=&quot;1&quot; src=&quot;Year.cfm&quot; marginwidth=&quot;10&quot; marginheight=&quot;20&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; noresize>
    <frame name=&quot;2&quot; src=&quot;details.cfm&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; noresize>
</frameset>

Thank you
 
See what an asterisk can do for you...

Code:
<frameset  rows=&quot;20,*&quot; frameborder=&quot;NO&quot; framespacing=&quot;0&quot;>
    <frame name=&quot;1&quot; src=&quot;Year.cfm&quot; marginwidth=&quot;10&quot; marginheight=&quot;20&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; noresize>
    <frame name=&quot;2&quot; src=&quot;details.cfm&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; noresize>
</frameset>

- - picklefish - -

Why is everyone in this forum responding to me as picklefish?
 
If I use the asterisk like that, then I loose one of the frames...frame name=1 doesn't show.

I tried rows=&quot;*,*&quot; , that doesn't work either.


 
I tried rows=&quot;*,*&quot; , that doesn't work either

* basically means that any number of pixels can be used for the bottom frame, allowing you to resize the window to any size. If you define both frames as *, things go haywire and your browser farts.


The following works:
Code:
<html>

<head>
<title>Frameset</title>
</head>

<frameset framespacing=&quot;0&quot; border=&quot;0&quot; frameborder=&quot;0&quot; rows=&quot;80,*&quot;>
  <frame name=&quot;1&quot; src=&quot;Year.cfm&quot; target=&quot;year&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;no&quot; noresize >
  <frame name=&quot;2&quot; src=&quot;details.cfm&quot; target=&quot;details&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;auto&quot;>
  <noframes>
  <body>

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

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

</html>


This maintains the top frame but allows the bottom frame to scroll to see all content.


If you are using ColdFusion, why don't you use includes to make this mess fit on one page? Frames stink.

- - picklefish - -

Why is everyone in this forum responding to me as picklefish?
 
Noresize actually refers to the frame, not the frameset. Noresize means that you cannot use the mouse to drag the frame border to make a different width or height within the frameset.

Clive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top