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 dynamic list box issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamic list box issue" Watch "dynamic list box issue" New topic
Author

dynamic list box issue

Mohammed Riaz
Greenhorn

Joined: Nov 15, 2006
Posts: 17
Hi Friends,

I have created dynamic list box using JSTL tags(<form:select>getting values from server side). But, my requirement is to change dynamic list box
to auto pick up the value from drop down using javascript or DHTML.

I have tried google i haven't got solution. All solutions are only
client side drop down. I want code to change the list box by calling some funtion in javascript or etc.. to change the list drop-down to auto pick..


Thanks & Regards...<br />Riaz<br />SCJP1.4<br />SCWCD(preparing)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60737
    
  65

Originally posted by Mohammed Riaz:
I have created dynamic list box using JSTL tags(<form:select>getting values from server side).

That is not a JSTL tag. It is a Struts tag.

I have tried google i haven't got solution. All solutions are only
client side drop down.

That makes no difference. All dropdowns are client side. All the Struts tag is doing is to create the HTML for the dropdown for you. It's still a dropdown like any other just as if you had coded it yourself in HTML. Do a View Source of the page to see the generated HTML.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mohammed Riaz
Greenhorn

Joined: Nov 15, 2006
Posts: 17
ok friend.. I need some info javascript code that change the functionality
of the combo box as auto pick up value.
Example..

drop down List contains (i) all accounts
(ii) 888
(iii) 999


If you press 8 automatially 888 should have to be selected..

If you have any sites or code please send...


Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Firefox and IE7 already support this out of the box.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic list box issue
 
Similar Threads
ListBox Question
how jsf component get the value from backing bean instead of submitted value after validation error
Type Ahead in Drop Down
how to make the first item of dropdown listbox tobe auto selected always
how to add dropdownlistbox to text field