Solved

How to achieve this feature?

Posted on 2004-04-06
1
214 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
XSL Grouping 7 36
two submit buttons one form 15 65
ColdFusion Rereplace 3 62
Getting attribute Values using xslt 4 34
When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
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.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now