Re: Scroll to selected item in select listbox

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: RobB (ferndoc9_at_hotmail.com)
Date: 02/17/05

  • Next message: Roland Hall: "Re: Scroll to selected item in select listbox"
    Date: 17 Feb 2005 11:58:49 -0800
    
    

    Raul Pires wrote:
    > Not possible. The page layout only allows the list to have 10 visible

    > elements.
    > The strange thing is if i have a button that sets the select list
    > selectedIndex to the last element and then click the button, the
    scroll
    > is made. But, if i use the same code that does this after the list is

    > design it does not scroll...
    > Any suggestion?
    >
    > Thanks
    >
    > McKirahan wrote:
    >
    > >"Raul Pires" <rpires@siscog.pt> wrote in message
    > >news:4214B6FA.5070702@siscog.pt...
    > >
    > >
    > >>Hello!
    > >>I have a select listbox with 20 elements but only 10 are visible. I
    set
    > >>the 15 position to be the selected one and it is but,, since only
    10 are
    > >>visible, a scroll is not made in the select list box allowing the
    > >>selected element to be showed. Is there anyway to make the scroll
    to the
    > >>selected element??
    > >>Thanks
    > >>
    > >>Raul
    > >>
    > >>
    > >>
    > >
    > >You may want to try:
    > >
    > > <select size="20">
    > >
    > >
    > >
    > >

    What browser are you using? afaik all the major ones do this
    automatically (scroll-into-view). Please describe *exactly* what you
    are attempting...


  • Next message: Roland Hall: "Re: Scroll to selected item in select listbox"

    Relevant Pages

    • Re: Scroll to selected item in select listbox
      ... The page layout only allows the list to have 10 visible ... The strange thing is if i have a button that sets the select list ... design it does not scroll... ... >>selected element to be showed. ...
      (microsoft.public.scripting.jscript)
    • Re: How to print a sorted list as a multi-column table
      ... So to see the f item you would have to scroll down all the way. ... what's the rationale for using the layout? ... Volume in drive C has no label. ...
      (comp.lang.python)
    • Re: Announcing a new online book: Eloquent JavaScipt
      ... With my layout, wide code examples will scroll. ... You are clearly only testing with one font size. ... The console is entirely layed out by scripts and absolute ...
      (comp.lang.javascript)
    • How to print a sorted list as a multi-column table
      ... So to see the f item you would have to scroll down all the way. ... unrelated to the item's position in sort order. ... what's the rationale for using the layout? ...
      (comp.lang.python)
    • Re: Scroll bars/overflow problem in IE
      ... > I'm trying to build a div based layout for a mambo template (work in ... > progress), and I'm having a strange problem, 2 acctually, with scroll ... The layout ... In my 1000+px high browser window, there's a puny box for the content ...
      (comp.infosystems.www.authoring.stylesheets)