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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating dynamic list boxes by efreshing a page?

Status
Not open for further replies.

webmast

Programmer
Dec 21, 2001
57
IN
i have two list boxes in a page.when a selection is made in the first list the options in the second list should be refreshed dynamically accordingly(for a single option in first list there are multiple options in second one)
 
Hi

Using the onChange event of the listboxes make the page go to itself but add URL parameters to the string. When the page reloads, check the values of the querystrings and create the recordsets accordingly. Derren
[The only person in the world to like Word]
 
Hey it might be irritaing to the user to go to server every time he cnages selection needs to wait for some time to get the values... You might even loose your customer.
What i suggest is if it is possible bring all the values to the page once it is loaded and refresh the second listbox using client side script every time user changes his options. By doing this even though first time page might be little slow but after that user will be happy to use it.

srinu...
 
I agree with SrinuReddy, Refreshing the page is only needed if you have data to update from the db etc..as far as objects go try to put them all to the page at first and use the client side scripting like he said.. ;)

Good luck!

-J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top