Results 1 to 4 of 4

Thread: Multi column listbox?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    Multi column listbox?

    I need a multi column listbox. I know this is not a std feature of the built in listbox. But could someone perhaps show me how to make one with css and javascript?

    /Smirre
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    sorry, not doable.
    Have I helped you? Please Rate my posts.

  3. #3
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    If you forget the actual list box, but use a table and anchors something like the following might be ok?
    Code:
    // in style section
    #lstName { width: 300px; height: 200px; overflow: auto; }
    #lstName * a { width: 100%; }
    
    
    // in main html section
    <table id='lstName' cellpadding=0 cellspacing=0>
    <tr><td><a href='./summat.asp?0'>Option in list part one</a></td></tr>
    <tr><td><a href='./summat.asp?1'>Option in list part one</a></td></tr>
    <tr><td><a href='./summat.asp?2'>Option in list part one</a></td></tr>
    <tr><td><a href='./summat.asp?3'>Option in list part one</a></td></tr>
    </table>
    Of course the actual ASP would be a loop to create the insides from a database.


    Is that the type of thing you meant?
    You may need an action.asp file to deal with it... but you can put all the arguements etc on the href bit.

    If you are looking for a multicolumn actual list box, you might need flash or some other plugin, and I have no idea whether these get posted with the forms info.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343
    Yeah, I will have to do it with out the listbox control. Just thought that someone might have one ready with all the functions of a regular listbox.

    Well of to code it..

    Smirre
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width