Solved

Make Div tags work like frames

Posted on 2011-03-14
2
500 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

730 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