Jump to content

Dropdown menu selct-> load new (tag?)


Mr_J

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.