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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

framesets and scrollbars -- 1

Status
Not open for further replies.

link9

Programmer
Nov 28, 2000
3,387
US
Morning all --

So I have this website, and I just went through and set the whole thing up in a frameset so that there is always a 10 pixel contact line along the bottom.

The problem is this -- Now, the upper frame always leaves room for a scroll bar, even when one is not needed, which completely screws up how the page looks because I have about a 10 pixel empty space to the right of it when the page doesn't need to scroll...

What is the setting that I need to put in so that that space doesn't show unless there is actually a scroll bar there?

thx for any input --
Paul Prewett
 
Here is the code from the page -- anyone??

<html>
<head>
<title>ConsumerMetrics Information Application</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<frameset rows=&quot;1*,15&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;>
<frame name=&quot;mainFrame&quot; src=&quot;main.asp&quot;>
<frame name=&quot;bottomFrame&quot; scrolling=&quot;NO&quot; noresize src=&quot;contact.htm&quot;>
</frameset>
<noframes><body bgcolor=&quot;#FFFFFF&quot;>

</body></noframes>
</html>

thx --
 
you should have your frame scrolling set to &quot;Auto&quot; this will only use a scroll bar if one is necessary. &quot;NO&quot; would never allow a scroll bar even if there is more information below the bottom frame.

 
I have the bottom one set like that on purpose -- it should never have a scroll bar --

But, unfortunately, when I changed this line to:
<frame name=&quot;mainFrame&quot; src=&quot;main.asp&quot; scrolling=&quot;AUTO&quot;>

The phantom scroll bar space is still appearing on the right side of the screen. :-(

It's almost as you would expect -- by that I mean there isn't actually a scroll bar there, but the space is allocated for it, and instead of the page filling the area, it's just white and blank and ugly...

any more ideas?
thx
 
The first thing I would do is remove the HTML code from the frameset. There should be nothing more than frameset commands there.

Then the code should look like this:

<frameset rows=&quot;1,*,15&quot; framespacing=&quot;0&quot; frameborder=&quot;0&quot;>
<frame src=&quot;../end.htm&quot; name=&quot;mainFrame&quot; frameborder=&quot;0&quot; scrolling=&quot;Auto&quot; noresize marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
<frame src=&quot;../menu.htm&quot; name=&quot;bottomFrame&quot; frameborder=&quot;0&quot; scrolling=&quot;No&quot; noresize marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
</frameset>
<noframes><body bgcolor=&quot;#FFFFFF&quot;>

</noframes>

In your code, you had your <frameset rows=&quot;1*,15&quot;. The browser was confused, you forgot the comma between the 1 and the *. Also, framespacing and border should be set to no. Try the code above, it should work very well for you.
 
Ok, I hope you'll bear with me here -- it's still not working...

I have uploaded three different copies of the site to a directory on the server, and would GREATLY appreciate it if you could get this straightened out for me --


I tried a few different combinations of what you had up there and nothing would work -- the one that you posted originally put the two files in opposite positions, but I tried to fix it -- to no avail...

I'm just not that great with this whole frameset thing yet, but would very much like for this site to function with one implemented.

Again, thanks for your help! :)
paul
 
Oh, and don't forget to view it at 800X600 -- that's what I have to design for -- thx again

 
Hi there,

Is the scroll bar that you are seeing appearing ABOVE or BELOW your contact frame? I looked at your first URL above, and the scroll bar is appearing ABOVE the contact frame, and if I use the scroll bar (left to right) it moves the top frame.

It seems you've coded the frames page fine, but the size of the main.asp page (too wide for 800 pixels) is needing a scrollbar. Try designing the main.asp page to fit within 780 pixels (leaving about 20 pixels for the vertical scroll bar) and you should be fine...
 
Back again,

Re-read your initial post (something I should always do before responding to questions) and realised my response was WAY off the mark. My apologies for that....

I've had another look at the pages and it seems its a bug (feature?) of the browser (although I can't be certain) - I've duplicated the problem in both IE5 and NS4, even after writing my own version of the pages.

The only solution I can offer is to make a background image with the blue/green bar at the top and the rest white....
 
As far as the gap on the right side of the screen - have you tried adjusting the margins of your page? Just set rightmargin=&quot;0&quot; in the code for that page - apologies if I am talking a load of bollocks ;-)
b2 - benbiddington@surf4nix.com
 
Yes, I have tried setting all that...

You know what just !!GETS!! me?!?!

The whole site was just fine until yesterday morning when I stuffed it in a frameset in order to have that contact line across the bottom --

Which points to the fact that it HAS to be something in my frameset, such as webGodiva suggested, but I just can't make it work no matter what I do... I tell ya, it's stuff like this that absolutely drives me up the wall -- clients are starting to look at the live version of this now, and I have to put extra line breaks at the bottom of the page to just go ahead and force the scrollbar -- which I really just didn't want to do --

If anyone else has any more ideas, please post them up... no such thing as a stupid suggestion. Bring them on.

thx all --
paul
 
:-( nope... but thank you.

gimme more -- gimme more.
 
maybe I'm being dense but do you only want two frames in your frameset ? If you do then shouldn't it read ROWS=&quot;*,15&quot; not ROWS=&quot;1,*,15&quot; ??? Not sure if i'm wide of the mark and even if this'll make a difference.

Joe.

It's got me bothered now.... :)
 
Buddy, you're not the only one it's got bothered. ;-)

It's got my boss and I both in a bunch --

I have tried what you suggested, and it didn't work. I've got feelers out all over the place, and the one thing I haven't heard is... &quot;This can't be fixed&quot;, so I'm hanging on to hope here.

If you can offer any more insight... :)

thx
paul
 
I used Netscape to grab the pages and frameset and put them into /joestest and by changing the frameset to read the following it appears to work...

<html>
<frameset rows=&quot;*,15&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;>
<frame name=&quot;mainFrame&quot; src=&quot;/joestest/main.asp&quot; scrolling=&quot;no&quot;>
<frame name=&quot;bottomFrame&quot; scrolling=&quot;no&quot; noresize src=&quot;/joestest/contact.htm&quot;>
</frameset>
<noframes><body bgcolor=&quot;#FFFFFF&quot;>
</noframes>
</html>

...or am I just being daft and missing something ?

Joe. :)
good luck.

 
Yea, it works in Netscape -- I should have said that...

It has to work in Internet Explorer :-(

paul
 
Joe -- I don't know how to thank you enough --

WOOHOO! YIPEE! YOU ARE THE MAN! all that stuff --

I just wish I could give more than one star, my friend, and hope that you have a scripting question that I can answer for you one day.

Until then... thanks again. :p

paul

ps. YEEEHAW!!
 
err... spoke too soon...

didn't even look at the code before I pasted it in and started using it --

Sometimes, some of the pages will need scrollbars -- even though the first one doesn't. :-(

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top