Digital Point Forums
Money Transfer

Go Back   Digital Point Forums > Design & Development > Programming > JavaScript
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Aug 8th 2005, 10:13 am
genevieve genevieve is offline
Peon
 
Join Date: Aug 2005
Posts: 5
genevieve is on a distinguished road
Making a "list menu" or "jump menu" display a list

I am trying to make a menu that, instead of taking you to a different page, will display a list on the screen. I want to use a menu, it is usually a form item--drop down menu, sometimes called a "jump" menu, or in Dreamweaver it is called a list/menu. In the code, the items are called "options" and the menu is called "select." I work for a school district, and basically I want it so that the menu is a list of our locations, and when you select a location, a list of programs available at that location appears below without taking you to a new screen. Also, the list of programs that appear will all be links.

Is Javascript the way to do this, (and if so, how?) or is there a better way?
Reply With Quote
  #2  
Old Aug 8th 2005, 11:43 am
J.D. J.D. is offline
of the Nightfall
 
Join Date: Nov 2004
Posts: 1,198
J.D. has a spectacular aura aboutJ.D. has a spectacular aura about
It would not be a trivial program, but you can do it either client-side (JS) or server-side (JS + PHP/ASP/etc).

1. In the first case, you will need to pull all possible choices and store them in a JS array. For example:

var applinks = new Array(0);

applinks.push(new AppLink(1, ...)); // 1st link, 1st group
applinks.push(new AppLink(1, ...)); // 2md link, 1st group
applinks.push(new AppLink(2, ...)); // 1st link, 2nd group
...
applinks.push(new AppLink(N, ...)); // Nth link, Nth group

Then, once the selection changes, you can clear out and populate some HTML element using this array using document.createElement (selecting those that match the group ID, for example).

2. You can do it server-side. In this case, once the selection changes, you will submit a form and on the server you will select only those links that match the submitted group and form a list.

J.D.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hey the meta name="revisit-after" content="1 days" command linksharp Search Engine Optimization 18 Oct 15th 2009 10:35 pm
Get rid of the meta name="robots" content="index, follow" tag? misohoni Search Engine Optimization 22 May 7th 2009 1:27 am
""PR3 "" Custom Designed "" Best Gourmet Foods Boston_JM Sites 9 Jul 21st 2005 10:19 pm
"First Place" cold-calls, refuses to put me on dnc list! aboyd General Chat 7 May 26th 2005 7:34 am


All times are GMT -8. The time now is 12:24 am.