A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Select the value from the Combo box
Joined: Apr 25, 2006
Oct 30, 2007 02:02:00
hi, i am selecting a value in the drop down.with respect to the selected value i have to reload the page or refresh the content of the page.
HJw can i do that?
Joined: Oct 01, 2007
Oct 30, 2007 05:32:00
use AJAX,Thats the best possible solution as you are trying to communicate between server and client without submitting or refreshing the page.
Joined: Nov 08, 2001
Oct 30, 2007 06:36:00
Do a serach for double combo or linked selects. There should be plenty of examples with postbacks or with Ajax.
Joined: Oct 29, 2007
Oct 30, 2007 07:24:00
Action or what ever you are calling to refresh the Page.
<select name="demo" onChange="refreshPage(this)">
<option value="1"> 1</option>
<option value="2"> 2</option>
Note this is just an idea that i am providing I dont have any live example to give you right now.
Author and ninkuma
Joined: Jan 10, 2002
Oct 30, 2007 08:20:00
Also, to avoid confusion, you should stop calling it a "combo box". A combo box is a type of UI control that is not available on the web. Call it a dropdown or a select.
Asking smart questions
Books by Bear
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Select the value from the Combo box
Enable isn't working in script
How to Get Valueof SelectField
System.out.println in jsp
How to bind data to a textbox in servlet?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014