Mr_J Posted November 24, 2008 Share Posted November 24, 2008 Hi All Q: Select in the "drop down menu" e.g "COUNTRY" then it have 2 go to "Selected Country" to display e.g CITY Names Bound to the Country. So if I select North AMERICA the page must load the "City list" for N America or if I select England it must load "London" "Dover" etc. Can this be done with tags? Cheers Jaco Quote Link to comment Share on other sites More sharing options...
Twister1004 Posted November 26, 2008 Share Posted November 26, 2008 From what I think, you should be able to do this. However it will be easier if you just made a person select the country then link it to the same page, only in this case another drop down menu where it will have all the cities. Quote Link to comment Share on other sites More sharing options...
haku Posted November 26, 2008 Share Posted November 26, 2008 It's done with javascript. There are two ways you can do it. You can either load all the possible secondary lists on the page load, hiding them using CSS, then using javascript to make the applicable one appear, or else you can use a technique called Ajax, which is javascript, but what it does is makes a call to the server, gets some data, and then inserts it in the applicable position on the page. This technique is a little more difficult, and takes a little longer as it's not instantaneous, but will prevent you from having to load a lot of unneeded data on the page load. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.