Solved

How to achieve this feature?

Posted on 2004-04-06
1
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

707 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