Solved

Make Div tags work like frames

Posted on 2011-03-14
2
501 Views
Last Modified: 2012-06-27
I am trying to write an app that gives me the basic functionality of a frame by using divs.

What I would like to do is have an initial drop down to select a major catagory and then in another div, have it display the options for the sub category.

Example
select state
      -> select city in the above state

I only want to see the cities from the above state and to make it even more difficult,  it needs to be dynamic because the cities can change.  This is part of a delivery tracking app.


0
Comment
Question by:ISHUC
[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
2 Comments
 
LVL 8

Accepted Solution

by:
imantas earned 250 total points
ID: 35130007
I think what you need is AJAX. It will let you receive data from the server withouth refreshing the whole page and put it inside any place on the page. There's no other way than JavaScript to update contents of a div. Usually JavaScript frameworks like jQuery have a very friendly interface which makes it very easy to use.

You can find more info here.
0
 
LVL 6

Assisted Solution

by:blueghozt
blueghozt earned 250 total points
ID: 35136443
This example gives you all the code you need for the current city/state relationships http://www.bitrepository.com/dynamic-dependant-dropdown-list-us-states-counties.html

If you want to make the cities dynamic (how often do they really change?) then you will need to subscribe to some sort of web service that maintains all of this information, I don't know of any US ones as I am UK based (we have Royal Mail’s PAF data that is updated regularly) but I am sure they are out there. The above example should get you up and running though.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…

724 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