Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Dropdown Listbox


Message #1 by Michael Flanagan <Michael.Flanagan@a...> on Wed, 14 Jun 2000 08:30:50 +0100
I was just wondering if anyone could tell me about a 

nice dropdown listbox which allows you to type in a few 

letters to go to the entry you want.



for example ,if you had a dropdown box containing peoples

names you could type in (searching for my name)

M and it would go to all names starting with M.

then if you type in I, you would go to all names

starting with MI ,etc. As it is if I do this it goes 

to the names starting with M then hops to the

names starting with I.



Thanking you in advanc



Thanks,

Mike



Michael.Flanagan@A...



Message #2 by "Daniel Walker" <danielw@w...> on Wed, 14 Jun 2000 13:35:31
Again, this isn't an ASP question, really. You'd need to write a 

client-side script to do this kind of dynamic switching thing. In any case, 

you'd be better off using a combined textbox/listbox setup (like in a 

standard Windows Help index, for instance). Dropdowns only really work for 

option-lists of upto ten options, or so, really. More than that, they 

defeat themselves.



Julian Skinner and myself have just looked in our old "Instant Netscape 

DHTML" book, and it does appear that even the fossil versions of Netscape 

support both onchange and focus, so an accross-platform way of doing the 

combined textbox/listbox thing using javascript should be do-able. 

Something like:



<input type="Text" name="choose" 

onchange="fiendishlycleverandimporbablynamedfunction(this)">



With the function then doing a comparrison with what's in the box and 

setting the focus in the list to whatever's the nearest match.



If I find some time, I'll try and cobble something together, but if anyone 

else wants to respond to this, I'll transfer the thread onto our new 

Javascript list.



On 06/14/00, Michael Flanagan wrote:

> I was just wondering if anyone could tell me about a 

> nice dropdown listbox which allows you to type in a few 

> letters to go to the entry you want.

> 

> for example ,if you had a dropdown box containing peoples

> names you could type in (searching for my name)

> M and it would go to all names starting with M.

> then if you type in I, you would go to all names

> starting with MI ,etc. As it is if I do this it goes 

> to the names starting with M then hops to the

> names starting with I.

> 

> Thanking you in advanc

> 

> Thanks,

> Mike

> 

> Michael.Flanagan@A...

Message #3 by "Ken Schaefer" <ken.s@a...> on Wed, 14 Jun 2000 14:57:49
And this has what to do with ASP and databases?



Cheers

Ken



On 06/14/00, Michael Flanagan wrote:

> I was just wondering if anyone could tell me about a 

> nice dropdown listbox which allows you to type in a few 

> letters to go to the entry you want.

> 

> for example ,if you had a dropdown box containing peoples

> names you could type in (searching for my name)

> M and it would go to all names starting with M.

> then if you type in I, you would go to all names

> starting with MI ,etc. As it is if I do this it goes 

> to the names starting with M then hops to the

> names starting with I.

> 

> Thanking you in advanc

> 

> Thanks,

> Mike

Message #4 by "Blackwelder, Dedra J." <djblackwelder@p...> on Wed, 14 Jun 2000 10:40:01 -0500
are we in a bad mood today?  There are list boxes in the book, but

they don't do more than the first letter.  'guess it can't be done.



-----Original Message-----

From: Ken Schaefer 

Sent: Wednesday, June 14, 2000 10:58 AM

To: ASP Databases

Subject: [asp_databases] Re: Dropdown Listbox





And this has what to do with ASP and databases?



Cheers

Ken



On 06/14/00, Michael Flanagan wrote:

> I was just wondering if anyone could tell me about a 

> nice dropdown listbox which allows you to type in a few 

> letters to go to the entry you want.

> 

> for example ,if you had a dropdown box containing peoples

> names you could type in (searching for my name)

> M and it would go to all names starting with M.

> then if you type in I, you would go to all names

> starting with MI ,etc. As it is if I do this it goes 

> to the names starting with M then hops to the

> names starting with I.

> 

> Thanking you in advanc

> 

> Thanks,

> Mike

Message #5 by "Daniel Walker" <danielw@w...> on Wed, 14 Jun 2000 18:1:45
I'm sure it can be done, but it'll need client-side JavaScript to do it, 

and isn't a question that directly pertains to databases, as Ken says.



On 06/14/00, "Blackwelder, Dedra J." wrote:

> are we in a bad mood today?  There are list boxes in the book, but

they don't do more than the first letter.  'guess it can't be done.

Message #6 by "Cory Koski" <ckoski@w...> on Wed, 14 Jun 2000 14:20:56 -0400
I think Ken's trying to say...



Keep it on the topic of "ASP and databases".  I doublt it has anything to do

with his mood, and more to do with the fact that he probably reads EVERY

message that comes through here to help us out.  Off-topic messages are just

not normally cool, a waste bandwidth, and they normally won't get answered,

as they are, by nature, off-topic .



If you need general ASP help, use IRC's #asp or join a generalized ASP

mailing list.



A good, but high traffic ASP mailing list can be found on www.15seconds.com

at

http://list.15seconds.com/scripts/lyris.pl?enter=activeserverpages&text_mode

=0



Cory



----- Original Message -----

From: "Daniel Walker" 

To: "ASP Databases" <asp_databases@p...>

Sent: Wednesday, June 14, 2000 6:00 PM

Subject: [asp_databases] Re: Dropdown Listbox



> I'm sure it can be done, but it'll need client-side JavaScript to do it,

> and isn't a question that directly pertains to databases, as Ken says.

>

> On 06/14/00, "Blackwelder, Dedra J." wrote:

> > are we in a bad mood today?  There are list boxes in the book, but

> they don't do more than the first letter.  'guess it can't be done.

>

  Return to Index