Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing List Boxes

Status
Not open for further replies.

mdr227

Programmer
Nov 17, 2000
114
0
0
US
I have two list boxes in a form: list1 and list2 let's say.

When a user selects a value in list1 I want to be able to refresh the page and limit the available values in list2 based on what is selected in list1. What would you say the best way to do this is?
 
I know a way you can update the next list without refreshing the way.It can be done through javascript.Do you need to refresh?
 
client side script.

you could easily do this with javascript:

have in the onchange property a function,

when the value changes... it will call your function.

your function can then use an array to populate the second list box dependant upon the value it was passed.
 
Would this work if both of the list boxes are being populated by backend database tables using ASP?
 
It's a client side valuation by performing the following code.

onChageValue{
window.refresh()
}

Regards,
Mathan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top