Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 17th, 2004, 04:37 PM
Registered User
 
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTML select

Hello,
I wanna know if there is a way to show horizontal scrollbar in a simple HTML select object.

thank's

adolfosalespacheco
 
Old February 18th, 2004, 12:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

i havent seen anything like this.

Always:),
Hovik Melkomian.
 
Old February 18th, 2004, 08:23 AM
Registered User
 
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the idea is:
I have a fixed-length list and, when appears an option larger than the list length the user can see all option text. if it's possible please send me an answer

adolfosalespacheco
 
Old February 18th, 2004, 08:27 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You could always use a div with a style of overflowY set to auto.

--

Joe
 
Old February 18th, 2004, 08:35 AM
Registered User
 
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i'm using two selects and i add items from one to other, so i don't know if using a div i get the same function.

adolfosalespacheco
 
Old February 18th, 2004, 09:34 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Well obviously you'd have to write quite a bit of code for this to function. Unfortunately the option element doesn't support the title attribute which would let you see all the text.
It seems like you have two choices, make the select box big enough to see all the text or create your own select box using a div...

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
html:select scrollbar somsahi Struts 0 July 24th, 2006 05:53 PM
html:select aytacakin Struts 1 December 23rd, 2005 11:19 AM
html:select aytacakin Pro JSP 0 November 15th, 2005 04:58 AM
html:select aytacakin Pro JSP 0 November 14th, 2005 09:47 AM
html:select aytacakin J2EE 0 November 14th, 2005 09:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.