PDA

Click to See Complete Forum and Search --> : Multi column listbox?


Smirre
Apr 26th, 2004, 06:54 AM
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

Acidic
Apr 26th, 2004, 08:39 AM
sorry, not doable.

Ecniv
Apr 26th, 2004, 10:11 AM
If you forget the actual list box, but use a table and anchors something like the following might be ok?

// 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

Smirre
Apr 26th, 2004, 10:51 AM
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