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

Turn frame scroll bar off or on programatically

Status
Not open for further replies.

ChrisQuick

Programmer
Oct 4, 1999
144
US
I am writing series of pages to search a database. One of the frames is going to contain the results of the search. I am trying to turn the scroll bar for the frame ON or OFF depending on how many records are returned.

I've tried:

parent.ResultsFrame.scrollbar = false; //turn it off
parent.PesultsFrame.scrollbar = true; //turn it on

but that doesn't seem to work.
cquick@geotg.com
Geographic Information System (GIS), ASP, some Oracle
 
You could try setting the overflow style property. Give the frame an id first. You could set it to auto, or hidden, for hidden, scrollbars not shown at all. Then maybe you could adjust it when the time came.
b2 - benbiddington@surf4nix.com
 
I am not sure what you mean. cquick@geotg.com
Geographic Information System (GIS), ASP, some Oracle
 
anyway, in frames, scrollbars appears automatically when there are too many rows ....
 
You're right. I went back and changed my frame layout source to set the scrolling to auto.

cquick@geotg.com
Geographic Information System (GIS), ASP, some Oracle
 
just for precision sake, bangers was talking about style sheets - CSS
it allows you to do almost whatever, for instance displaying a box wth text inside and scrollbars appearing / or not ... just by setting a property (here the overflow one) - more on this on the w3c site, or on sites referenced either in the "links" part, or in the "faq" part of this forum

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top