Click to See Complete Forum and Search --> : DropDown ListBox that STAYS dropped down


cprice
05-22-2003, 11:02 AM
Hi All, I am dynamically populating a dropdown listbox with data from my sql table using <SELECT> and <OPTION> tags. Is there any way that i can keep this list "dropped down" so that all the user has to do is click on one of the options? Sounds silly but it will save my users the click needed to drop down the list (and that will make them very happy).I have plenty of room on the page for the expanded list. Thanks for any help!!

Jona
05-22-2003, 11:05 AM
<select size="4">

khaki
05-22-2003, 11:06 AM
hi cprice...

you can just add this to the SELECT

multiple size=n

(n = any number... or ASP variable containing a record count)

;) k

EDIT: damn.... that Jona is fast!

cprice
05-22-2003, 11:13 AM
FANTASTIC!!! Thanks to both of you! That is EXACTLY what I needed!! I am blushing at the simplicity of this solution. I looked and looked trying to figure this out.... Oh my, but I do love it when the solutions are this simple!

Jona
05-22-2003, 11:13 AM
lol :D

khaki
05-22-2003, 11:17 AM
Originally posted by khaki
that Jona is fast!but it's only cause you got younger legs...
(and I was wearing heels! lol :) )

;) k

Jona
05-22-2003, 11:26 AM
All right. So that may be true. :rolleyes:

khalidali63
05-22-2003, 11:31 AM
Hey guys,try using
multiple="multiple" as compare to just
multiple

in the new world of Standards..:-)

Jona
05-22-2003, 11:31 AM
Actually, Khalid, I think this should've been posted in the HTML forum...

khalidali63
05-22-2003, 11:51 AM
In that case actually the whole thread should have been in html section,I am sure already knew that.

Jona
05-22-2003, 11:54 AM
Yeah. ;)

khaki
05-22-2003, 12:01 PM
so wait...
<select multiple size="10">

... now requires...
<select multiple="multiple" size="10">

?

what a pain in the neck that is!
(do you have any idea how many forms i have created in the past 3+ years!?!)

oh well... i guess it's my owm fault for not paying attention to the version changes.
live and learn :rolleyes:

;) k

pyro
05-22-2003, 12:14 PM
Originally posted by khaki
so wait...
<select multiple size="10">

... now requires...
<select multiple="multiple" size="10">
Yes. http://www.w3.org/TR/xhtml1/#h-4.5

Jona
05-22-2003, 12:22 PM
That is, according to XHTML 1.0, not HTML. In XML it is also invalid to use capitals in your tag names: <HEAD> is proper HTML but improper XHTML. <head> is proper HTML and XHTML.

pyro
05-22-2003, 12:37 PM
That's what Khalid said... "in the new world of Standards"

khaki
05-22-2003, 12:42 PM
Since I don't really have the time required to read the very user-unfriendly mountainous amounts of documentation that is supplied by W3...

y'see...
I was just over there again (thanks Pyro) ... and boy-oh-boy, if they ever published that stuff in a book... no one would buy it!
What a convoluted and dis-jointed arrangement that place is.
If i were ever to give a lecture about "How Not To Arrange A Website"... I would use that site (and that site alone) as my test case!
YEESH!

okay... rant over (for now :rolleyes: )...
so... can someone please explain to me what the "standard" is.

According to W3, HTML v4.0 and HTML v4.1 recommend multiple (that's it. Just multiple).
And... XHTML v1.0 recommends multiple="multiple'

so... before I completely lose track of which language I am supposed to be coding in...

Is HTML v4.1 now history?
Is everything supposed to be written in XHTML now (exclusivly)?
Am I the last person on the planet who was not aware of this? ( ;) lol)

I'm going nuts over here!
Can someone shine a light in my direction and see if I still even exist.... please...

;) k

EDIT:
OH!!!!!!!
well..... ya gotta say that in the first place!
yikes!
(y'coulda saved me a lotta typing. lol :) )

Jona
05-22-2003, 12:46 PM
It's HTML 4.01, not HTML 4.1. ;) Also, the "new" standard would be XHTML. Where you have <option selected="selected">. The "common" standard would be HTML 4.01. Where you would have <option selected>.

http://www.w3schools.com/xhtml/xhtml_intro.asp

khaki
05-22-2003, 12:54 PM
Well that settles it...

I'm not writing another line of code until the "new new standard" comes out!
lol :)

(so... y'like how i butchered the versions? lol. There is no hope for me :rolleyes: )

;) k