aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes html drop down menu Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "html drop down menu" Watch "html drop down menu" New topic
Author

html drop down menu

Jason Crest
Greenhorn

Joined: Oct 17, 2002
Posts: 29
Hi Yall,
i was wondering how it would be possible to when someone selects something on the drop down menu that their option can be displayed when the page is refreshed instead of going back to the first option.
Thanks!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
you would have to use a cookie to store what the user changed and when the page is reloaded, the cookie would have to be read.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56178
    
  13

If you are using any server-side technology such as JSP, this is also fairly easy to do since the value is submitted as part of the request parameters and can be used to set which of the options is selected when the page is 'written' on the server.
hth,
bear
[ September 03, 2003: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: html drop down menu
 
Similar Threads
Choice choice = new Choice();
‹option selected="selected"› functionality in Struts 2
JavaToExe
servlet+html
Resfresh page and getting values when option is selected