Large Problem with Dynamic Drop Down / List Boxes

Results 1 to 2 of 2

Thread: Large Problem with Dynamic Drop Down / List Boxes

  1. #1
    Ben Verwey Guest

    Default Large Problem with Dynamic Drop Down / List Boxes

    This is somewhat of a large posting and there are a number of questions asked... <BR><BR>HOWEVER, the questions should be fairly simple for a lot of you considering some of the other questions that I have seen posted here.<BR><BR>I&#039ve been asked to create a web page in which has four frames 1st takes up half the page (100% across & 50% down)<BR>2nd, 3rd and 4th are across the bottom half of the page. They each take up 33% of the width of the page.<BR><BR>1st Problem: I want each frame to contain a List box, but don&#039t know how to create a list box in HTML or whatever would be best.<BR><BR>Above each of the lower frames I have a Drop Down Box. In the first box there is a list of items that can be displayed in the first frame/list box. In the second box there is a list of items that can be displayed in the second frame/list box and so on...<BR><BR>2nd Problem: How do I populate a listbox Dymanically (so the items in the list box are not hard coded into the page)<BR><BR>After the first list box has been populated, the user should be able to select items from that list box. Then they can proceed to click on the next Drop Down box and select an item form that to display more information in the second list box.<BR><BR>The key to this is that what appears in the next Drop Down box is dependant on the user selects in the first Drop Down box<BR><BR>3rd Problem, How do I populate the second and third Drop Down Boxes Dymanically (again without having any of the items hard coded into the page)?<BR><BR>4th Problem and probably the hardest one: All the information that will be displayed in the listboxes is from a Database and I don&#039t know how to "link up", you might say, to the database to get the information.<BR><BR>I have a background in C++ as well as few books at my disposal, but I have not been able to find what I am looking for (it might be there, but I can&#039t find it). The books are...<BR><BR>"Special Edition - Using Dynamic HTML" by QUE<BR>"JavaScript - The Definative Guide" an O&#039REILLY book by David Flanagan<BR>as well as another DHTML book by Microsoft that I can&#039t seem to find right now.<BR><BR>Any help that anyone could give me would be great. Even if it&#039s as simple as a good Web Site that they know of.<BR><BR>Ben Verwey<BR>BC Hydro<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Large Problem with Dynamic Drop Down / List B

    Ben,<BR><BR>I have found that using ASP works very well for getting info out of a db. The book Beginning ASP (Active Server Pages) by WROX (publisher) is extremely good. There are some good tutorials at as well. Here is a link to one of their turotials<BR><BR>In HTML, the only difference that I can see between a list box and a drop down, is how many items are shown at once. (both technically let you show 1-many items and can allow a user to select 1-many items from the list. Below is sample HTML code to create a list box:<BR><BR>&#060;SELECT id=select1 name=select1 size=4 multiple&#062; <BR>&#060;OPTION value=1&#062;hi&#060;/OPTION&#062;<BR>&#060;OPTION value=2&#062;bye&#060;/OPTION&#062;<BR>&#060;OPTION value=3&#062;si&#060;/OPTION&#062;<BR>&#060;/SELECT&#062;<BR><BR>size - determines how many rows you list box will display<BR>multiple - means the user can select more than one value.<BR><BR>Notice that if you remove both of these items, you have your traditional dropdown box.<BR><BR>Being able to update your lists based on a previous selection the user made will probably require javascript which is not my strong point, so I will stop here.<BR><BR>Hope this helps some. Good luck.<BR>Deborah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts