469,271 Members | 1,081 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

listbox with 2 columns and a vertical bar - how to create it in HTML?

Maybe someone can show me an example of a listbox with 2 columns and a
vertical bar created by HTML (JavaScript is OK).

Thanks,

Zalek
Aug 12 '08 #1
6 1198
In article
<ec**********************************@f63g2000hsf. googlegroups.com>,
zalek <za********@hotmail.comwrote:
Maybe someone can show me an example of a listbox with 2 columns and a
vertical bar created by HTML (JavaScript is OK).
Like this:

<http://dorayme.890m.com/alt/listSideBySideScroll.html>

?

--
dorayme
Aug 12 '08 #2
dorayme wrote:
In article
<ec**********************************@f63g2000hsf. googlegroups.com>,
zalek <za********@hotmail.comwrote:
>Maybe someone can show me an example of a listbox with 2 columns and
a vertical bar created by HTML (JavaScript is OK).

Like this:

<http://dorayme.890m.com/alt/listSideBySideScroll.html>

?
Was this a failure to understand, or were you making the subtle point that
it could not be done?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Aug 12 '08 #3
On Mon, 11 Aug 2008 17:40:42 -0700 (PDT), in comp.lang.javascript
zalek <za********@hotmail.com>
<ec**********************************@f63g2000hsf. googlegroups.com>
wrote:
>| Maybe someone can show me an example of a listbox with 2 columns and a
| vertical bar created by HTML (JavaScript is OK).
|
| Thanks,
|
| Zalek
<select name="lb" size="1" style="font-family: monospace">

<option>R1C1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;|
R1C2</option>
<option>Row 2 Col1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| Row2
Col2</option>
<option>Row 3 Column 1 | Row 3 Colmn 2</option>
</select>
----------------
IOW, style to use monospaced fonts and use &nbsp; to pad the first
column to the desired width.
Aug 12 '08 #4
Bob Barrows [MVP] wrote:
dorayme wrote:
>In article
<ec**********************************@f63g2000hsf .googlegroups.com>,
zalek <za********@hotmail.comwrote:
>>Maybe someone can show me an example of a listbox with 2 columns and
a vertical bar created by HTML (JavaScript is OK).
Like this:

<http://dorayme.890m.com/alt/listSideBySideScroll.html>

?

Was this a failure to understand, or were you making the subtle point that
it could not be done?
Hmm. It wasn't clear in the OP but I'm guessing you said this because
you think the OP wants two columns with ONE scroll bar? Yes?

--
Ed Mullen
http://edmullen.net
Don't be accommodating, be honest. I honestly don't have much more time
for anything else.
Aug 12 '08 #5
Ed Mullen wrote:
Bob Barrows [MVP] wrote:
>dorayme wrote:
>>In article
<ec**********************************@f63g2000hs f.googlegroups.com>,
zalek <za********@hotmail.comwrote:

Maybe someone can show me an example of a listbox with 2 columns
and a vertical bar created by HTML (JavaScript is OK).

Like this:

<http://dorayme.890m.com/alt/listSideBySideScroll.html>

?

Was this a failure to understand, or were you making the subtle
point that it could not be done?

Hmm. It wasn't clear in the OP but I'm guessing you said this because
you think the OP wants two columns with ONE scroll bar? Yes?
Yes. The OP after all does say "a listbox", so an example showing two
listboxes is probably not what the OP wants.
Jeff showed a kludge to accomplish this. Hopefully that will satisfy the
OP.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Aug 12 '08 #6
In article <Oj**************@TK2MSFTNGP02.phx.gbl>,
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote:
dorayme wrote:
In article
<ec**********************************@f63g2000hsf. googlegroups.com>,
zalek <za********@hotmail.comwrote:
Maybe someone can show me an example of a listbox with 2 columns and
a vertical bar created by HTML (JavaScript is OK).
Like this:

<http://dorayme.890m.com/alt/listSideBySideScroll.html>

?

Was this a failure to understand, or were you making the subtle point that
it could not be done?
Looks like it was a too hasty response of mine and was a failure to take
the OP literally. I simply thought he meant to have a couple of lists
and to have some scrollbars and was not making any point beyond this.

(I am not capable of great subtlety, I am sort of Australian you see...)

--
dorayme
Aug 13 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mad | last post: by
6 posts views Thread by Chris Leuty | last post: by
1 post views Thread by SJ | last post: by
3 posts views Thread by drodrig | last post: by
2 posts views Thread by j.m.osterman | last post: by
7 posts views Thread by Lit | last post: by
5 posts views Thread by WRH | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.