|
-
Apr 26th, 2004, 06:54 AM
#1
Thread Starter
Hyperactive Member
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
-
Apr 26th, 2004, 08:39 AM
#2
Frenzied Member
Have I helped you? Please Rate my posts. 
-
Apr 26th, 2004, 10:11 AM
#3
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
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...
-
Apr 26th, 2004, 10:51 AM
#4
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|