Solved

How to achieve this feature?

Posted on 2004-04-06
1
218 Views
Last Modified: 2010-04-06
For example, in the "From" and "To" dropdown list:
http://www.bestplaces.net/col/col.aspx

before the "State" is selected, the "city" is disabled;
after the "State" is sected, the "city" is loaded.

Is there any general way to do these without considering languages (asp, jsp, php...)? or What are the key techniques to achieve this feature?
0
Comment
Question by:ggyao2003
1 Comment
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 50 total points
ID: 10773146

You can use any kind of scripting language for this.
If you are using server side scripting, Once both the selects are filled, you can submit the form by using onchange=""..
When the form is submitted, on server side find the cities and display them in the remaining selects..

If you see the city drop down menu are empty(view source.)

I guess they are using database to store city information

You can also do that using client side scripting but you have to load all the state and city informationc in javascritp/VBscript array,.

venkat.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question