scroll box focus

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • steve farris

    scroll box focus

    I have a scroll box that allows multiple selections. Something like:

    <select size=4 multiple name=xyz>

    Now, when i show the form i default select one of the entries. If
    the selected entry is further down the list it won't be seen by
    the user. Is there a way i can make the selected entry appear
    in the visible portion of the select box??
  • Ivo

    #2
    Re: scroll box focus

    "steve farris" <fm_duende@yaho o.com> wrote in message
    news:dde3a846.0 403011118.65c72 c45@posting.goo gle.com...[color=blue]
    > I have a scroll box that allows multiple selections. Something like:
    >
    > <select size=4 multiple name=xyz>
    >
    > Now, when i show the form i default select one of the entries. If
    > the selected entry is further down the list it won't be seen by
    > the user. Is there a way i can make the selected entry appear
    > in the visible portion of the select box??[/color]

    Do you pre-select, serverside or clientside? If done serverside, Mozilla
    displays the selected fine, just as IE(5) even clientside. I did not get
    Mozilla(1.0) to scroll down however, when I had a javascript select a bottom
    option. Perhaps add some text in a div next to the select detailing how many
    are currently selected (which is never visible so might be appreciated
    anyway)

    var howmanyselected =0;
    var xyz=yourreferen ceto.xyz.option s;
    for( i=xyz.length ; i-- ; )
    if( xyz[i].selected )
    howmanyselected ++;

    var s=(howmanyselec ted==1) ? '' : 's' ;
    referenceto.the div.firstChild. nodeValue=
    'Currently '+howmanyselect ed+' item'+s+' selected.' ;


    Comment

    Working...