File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes what is widget called? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "what is widget called?" Watch "what is widget called?" New topic
Author

what is widget called?

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Does anyone know if there is a name for the widget described below?

It looks like a regular multiple selection box (<select>.) The user clicks or tabs into the box and types in some text. The widget takes the user to the entry beginning with those characters through JavaScript. Normally, browsers support this for the first character. For example, you type "O" in a list of states to go to Ohio. This widget extends that functionality to support multiple characters.

Note: this is different than a combobox in that it doesn't have a corresponding text field.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I can not access the forum from work where I know the code exists so I can not get a direct link!

On http://www.codingforums.com they have a "post a script" forum. Do a search for something like "continuous dropdown" or something like that. If you can not find it, I will find the link tonight when I get home.

Eric
Garann Means
Ranch Hand

Joined: Jan 28, 2002
Posts: 214
I've heard that function called "type ahead". I think that's MS's term for it, so it may have a different name on the web.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
here: http://codingforums.com/showthread.php?t=9865

Eric
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Thanks Eric. I guess it doesn't have a name other than "type the first few characters."
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

For anyone who sees this in the future, the widget is called an "multi-stroke auto-select combo." The direct link to the example Eric mentioned.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

I know this thread is old, but I want to add this as a note to myself:

Firefox & IE 7 provide this functionality out of the box. The only thin missing is to display what has been typed in so far in the info bar.
 
jQuery in Action, 2nd edition
 
subject: what is widget called?
 
Similar Threads
parse( ) of DateFormat
Javascript
Show default text in PasswordTextBox.
swt.widgets.Text support chinese characters?
Help needed in internationalization of J2EE application