Hiding scroll bars IE7 with frames

This works great in IE7 with no frames:
function hideScrollBar(){
document.body.style.overflow='hidden'
function showScrollBar(){
document.body.style.overflow='';0
}As long as I do not want to use frames. As soon as I use frames though I get spacing for the scroll in IE7 (not netscape or mozilla). Any thoughts on how to get rid of that vertical scrollbar space?
Thanks,
John Glynn

I guess you need to specify the frame before the document.body... like
window.<Your_Frame_Name>.document.body.style.overflow='hidden' or window.frames['Your_Frame_Name'].document.body.style.overflow='hidden'

Similar Messages

  • Adding Scroll Bar to a Frame

    Hi guys,
    Can anyone help me to add a scroll bar to a frame which contains a panel. The panel contains some Labels and one buttton.
    Please suggest it using java.awt package(not swings).

    But can you please tell me how to implement that.
    I am helpless. I can't find away out.Oh come on, look at the API docs. Put your Panel with the correct size into the ScrollPane, put the ScrollPane into the Frame, done.

  • Adding scroll bars to a frame

    Hi, I have a frame that pops out from my applet, and I want to add scroll bars to this frame. Using JScrollPane does not work. The scrollbars do not show up even when the image that is displayed on the frame does not fit in the current frame size. Is there a good way to do this? Thanks.

    Container c=getContentPane();
    c.setLayout(new FlowLayout());
    JScrollPane pane=new JScrollPane(your Component or frame);
    c.add(pane)

  • Why aren't OS X Lion hiding scroll bars supported?

    I know Opera doesn't support them yet, but Safari, Chrome, and many browsers already fully support the OS X Lion gestures and interface. My question is, one and a half years and nearly ten releases later, Firefox still blatantly refuses to even acknowledge that they need to support the Lion release, and Mountain Lion's already here.

    Honestly, I have no clue. There are instructions if you scroll down, but there confusing for me.
    https://github.com/LearnBoost/antiscroll
    EDIT: Oh my bad. This is for webpages, not the actual browser. :( Sorry. I will look into os x lion hiding scroll bars some more.
    EDIT: I found this, but I have windows 7, so I can't install this. You could give it a try.

  • Horizontal Scroll bar problem with CL_GUI_ALV_GRID

    Hi Experts,
    I have created Dynamic ALV by using CL_GUI_ALV_GRID . Everthing is working fine if all the data is displaying in single screen. But if the number of columns increase with the output of data the horizontal scroll bar is not working.
    It is visible but when I click to scroll it to the end of screen it is not working. Can anybody help me that what can be the problem?

    Please reduce the container size in the screen thru SE51 that automatically create the scroll
    or check whether in the attributes of the screen "Hold scroll positio" not to be checked

  • Horizontal scroll bar moves with page up/down

    I'm new at this and apologize if I don't have the right forum, but can't find any reference to my problem anywhere. A month or so ago the horizontal scroll bar at the bottom of the screen started moving up or down with the page as I used the vertical scroll bar to page up or down. The bar partly disintegrates if I click on it, but mostly remains in place and obscures text on that line. If there is more than one page I can make the bar disappear by scrolling the to the next page, and then back. This happens only when I'm on the internet, and appears in news pages ( e.g. NY Times, BBC) and on my e-mails (I use Hotmail). I have a Mac mini, 1.66 GHz, OS 10.4.11, all other updates offered by Apple. I'm sure this is not a Safari problem, and my searches for Apple viruses, Trojans, Worms, has found nothing about this (there are discussions about vertical scrolling, but these don't seem to relate to my problem). So can anyone tell me what this is and how to get rid of it? Thanks for any help. TJ Wont

    I've got the same problem. It started when the BBC introduced adverts onto their News website. As the page loads an advert (or sometimes whitespace) appears between the tab and the BBC News banner. This is then shifted to the right hand side when the page fully loads.
    I suspect that there's some fancy DHTML going on that Safari isn't rendering properly.
    Problem doesn't occur if the Safari window is maximised to full screen width.

  • Help with a vertical scroll bar issue with a List component

    hi. i have a basic <s:list> that uses an XMLListCollection as it's data provider and a very basic itemrenderer. when a row in the list is clicked a function gets the list.selectedIndex then populates some text fields with more xml data. that all works fine.. the problem i have is that the vertical scroll bar on the list seems to be "clickable" - just like a row in the list. the scroll bar scrolls normally but when it's clicked the selectedIndex becomes -1 which is not helpful b/c the value -1 is passed to the XMLListCollection.
    any ideas? cheers.

    thanks but still problematic...surely the <s:List> component shouldn't return a value when the scrollbar thumb is clicked? i created a very basic list (see below) and made the list dimensions short enough so that there is a vertical scrollbar and found that when the scrollbar thumb is clicked the trace(event.currentTarget.selectedIndex) returns a number. that's annoying b/c i just want a selectedIndex value for a row that is clicked not the scrollbar.
    any ideas to get around? cheers
    <fx:Script>
    <![CDATA[
    protected function list1_clickHandler(event:MouseEvent):void
    trace(event.currentTarget.selectedIndex);
    ]]>
    </fx:Script>
    <s:List x="162" click="list1_clickHandler(event)" y="276" labelField="@label" width="144" height="153">
    <s:dataProvider>
    <s:XMLListCollection>
    <fx:XMLList xmlns="">
    <node label="one"/>
    <node label="two"/>
    <node label="three"/>
    <node label="four"/>
    <node label="five"/>
    <node label="six"/>
    <node label="seven"/>
    <node label="eight"/>
    <node label="nine"/>
    <node label="ten"/>
    <node label="eleven"/>
    </fx:XMLList>
    </s:XMLListCollection>
    </s:dataProvider>
    </s:List>

  • How can I put a scroll bar on a frame?

    Hello,
    I have a class that extends JFrame, and I need the Frame have a scroll bar. How can I do so?

    JFrame frame = new JFrame() ;
    JScrollPane scrollpane = new JScrollPane() ;
    JPanel panel=new JPanel();
    JLabel label=new JLabel("Hello!");
    label.setPreferredSize(new Dimension(2000,2000));
    panel.add(label);
    scrollpane.add(panel);
    frame.setContentPane(scrollpane);
    Does that work for you?
    PS:scroll bar as needed is the default setting, so you don't actually need them. And yeah, your panel must be big enough to let the scroll bars show themselves.

  • Why are vertical scroll bars disapearing with safari

    I have no vertical scroll bar when I access certain websites through safari, but they are there if I use firefox...

    Open the Finder.
    From the Finder menu bar click Go > Go to Folder
    Type or copy / paste:    ~/LIbrary/Caches/com.apple.Safari
    Click Go the move the ApplicationCache.db (or Cache.db) file from the com.apple.Safari folder to the Trash.
    Quit and relaunch Safari to test.

  • Frame need's Scroll Bars

    I need some help. I have created a JFrame using a GridBoxLayout, but they problem I have encountered is that when the frame is too small for the content it overlaps. This is not a problem for the width since I am setting the size of the screen unResizable. But when the content grows to long for the height of the frame all the JLabels, JTextFields and etc. overlap. What I would like is when there is too much content for the screen that a Scroll Bar appears on the right side of the screen and the content of the screen remains the same, and to see the content below all I have to do is scroll down. Much like a text area or I guess the same a web page. The only way I know how to add a scroll bar is to a text area. I would like to be able to add a scroll bar to a frame, container or panel.
    Derek

    1) What is a GridBoxLayout?!
    2) The solution to your problems - set the content pane to a JScrollPane, set the viewport to a JPanel with your layout (whatever it is) and add your components to the panel.
    3) If you want to add scroll bars to anything, use a JScrollPane. See the API documentation for details.
    Stephen

  • Changing scroll bars to buttons

    Hello all, I use Macromedia Dreamweaver Mac for my wepage
    editing, I was wondering if anyone knows any helpful tutorials or
    instructions on how to replace the ugly grey scroll bars in your
    frames with arrow buttons or the like. Thanks much !!

    You can control the colours of the scroll bar elements using
    CSS which means you can effectively 'hide' the scroller etc. You
    can find more info here:
    http://websitetips.com/articles/css/scrollbars/
    You can do it .... but should you? I'd agree with Micha,
    avoid it if possible and perhaps revisit your design, i dislike
    having many scrollables within a page especially when the
    containers are not dimensioned relative to thier content (don't
    make me scroll when I shouldn't have to).
    Karen

  • Table cell scroll bar overflow- why doesnt it work?

    Hi everyone.
    Ok, im have an existing document/site:
    http://www.helenbwilson.com/helen-portfolio-1.html
    I want the table cell in the left to have a scroll bar (only
    with the height part). I want the "block" of the images to have a
    height of 400px. Now, I have tried to do this, and for the most
    part got it to work-in another document:
    http://www.helenbwilson.com/CSS-test-01.html
    I am trying to replicate, but I have absolutely no idea why
    its not working now.
    I applied a css style and I want the same type of scroll, so
    when there are more images, it can have a scroll bar.
    Can anyone tell me what Im doing wrong? If I am not being
    clear, please let me know.
    Any info would be appreciated.
    Thanks
    -psy

    I think you mean something like this:
    Put this in your head:
    <style type="text/css">
    <!--
    .imageBlock {
    display: block;
    float: left;
    height: 400px;
    width: 250px;
    overflow: auto;
    background-color: #FF0000;
    -->
    </style>
    put this in your body:
    <div class="imageBlock">
    </div>
    If the table or other content you place inside your
    'imageBlock' div, is higher than 400 px, you'll get a vertical
    scrollbar.

  • How can I hide horizontal scroll bar?

    Some websites use CSS code (overflow-x: hidden or overflow-y:hidden), that shows the horizontal scroll bar while the frame on the website is centered and only 800 pixels wide, but I really don't need my horizontal scroll bar to show up. So how can I hide it?
    Thanks!

    If you use <b>overflow: hidden</b> then you shouldn't see a scroll bar (overflow:scroll does that).<br />
    If that doesn't work then try to add the !important; or use the code in Stylish or to userContent.css in the chrome folder.
    *http://kb.mozillazine.org/userContent.css
    *https://developer.mozilla.org/en/CSS/@-moz-document

  • [ADF-11.1.2] Scroll bar Issues - Please file BUGs for these issues.

    Hello,
    Recently, I have started working on ADF and till now I found 2 scroll bar issues with Oracle ADF.
    1. af|inputComboboxListOfValues : Scroll bar appears on Google Chrome.
    Screenshot: http://imageshack.us/photo/my-images/829/inputcomboboxlistofvalu.jpg/
    2. Setting Table "columnStretching" brings dummy scroll bar : [ADF-11.1.2] Setting Table "columnStretching" brings dummy scroll bar
    I beleive that these two are scroll bar related Bugs but what I understand from ?messageID=9773962 that since I don't have support contract, I can't file a bug.
    I have created this thread so that responsible people can take actions accordingly.

    Shay,
    Thank you for your reply. I will take a look at your links.
    Use Case:
    Application will have different BC for different IT Assets (like Monitor, Keyboard, Servers etc), which will basically hold records for all available Assets (like Display Resolution, screen size etc for all monitor in Monitor BC).
    I want to give user; the ability to create, for e.g., the sub-class of Monitor to store more specific attribute-values in different table (which will be linked Parent BC). For e.g.: They may want to care about holding CRT and LCD Monitor records in separate new database table -- Application will ask user what all attributes/Columns they want to see for LCD which is specific to this type AND which is not present in already existing out-of-box Monitor BC/Table - e.g. - "Viewing Angle" Attribute).
    With that said, I can write code to create database table on fly (having 1-to-1 foreign key reference to parent table) but writing ADF part seems difficult. I also wanted application to automatically generate new page for newly added VO BC. E.g.: LCD-Monitor.JSPX inheriting all attributes from monitor (parent VO) in the same structure as Monitor.JSPX file is having with extra LCD-specific Attributes in separate panel tab (which again UI developers can customized it).
    Too much to expect huh !
    I am going to start building the application so If not above way, any other suggestion to achieve the requirement ?
    Edited by: Anandsagar Sah on Aug 29, 2011 9:23 PM

  • Scroll bar in CC 2014

    I am using StaticMultiLineTextWidget and ScrollBarWidget (vertical). I have associated the scroll bar widget with the multiline widget so that it works with it. I see that in CC 2014, the scroll bar appears with top and bottom arrows but the scroll bar thumb doesn't appear.
    Note that the same works fine in CS6. Has there been any change in CC 2014?

    I found this workaround to avoid this issue,
    We need to set the text of the StaticMultiLineTextWidget programatically (i.e. get the ITextControlData of that widget and call SetString() method.). If the initial text is set in the .fr resource file then the scroll widget doesn't work.
    This worked for me and I hope for others also. So I posted the workaround here just in case if someone else face the similar issue.

Maybe you are looking for

  • How can I separate my iPhone from my daughter's ipod?

    She set up texting on her ipod.  It's like group texting for contacts that we both have.  This started after I upgraded my software.

  • Buying new PC for Adobe, need help

    Hi everyone! First thing, I apologise for my English, I hope you can understand my writing. One of my best friends is photographer and graphic designer and she asked me for help buying a new PC because the old one broke (it was a laptop). She needs a

  • Scanner on 4700

    We upgraded to an HP Color LaserJet 4700DN. We purchased it used without manuals etc...    I believe it has a scanner on it, as the display window told me to close it.  I have downloaded the manual however I am not finding instructions on how to use

  • I don't see an option for how to insert a page (not page break)?

    Anyone know how to make this option become available?

  • Safari suddenly opens up a window

    Safari suddenly opens up a window linking me to cloud10.org which directed me bakerradio.com. anyone experiencing such a problem with their browser too? is this a virus?