dynamically dependent list boxes

This is a discussion on "dynamically dependent list boxes" within the Classic ASP section. This forum, and the thread "dynamically dependent list boxes are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 28th, 2006, 13:45
Junior Member
Join Date: Feb 2006
Age: 30
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
dynamically dependent list boxes

I want to create two dynamically dependent list boxes. The first one being the main which retrieves the data from the database and second one being the child. When a value in the first list box is clicked, the second one should get populated. I am not too comfortable with Arrays, is it possible to workout the solution in some other way. If possible please point me to some useful sites. Thanks in advance.
Reply With Quote

  #2 (permalink)  
Old Apr 30th, 2006, 16:57
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: dynamically dependent list boxes

There are several ways to work around this, and the ruth is... it's up to you how you do it.

Method 1
Start form by showing list A.
Don't show list B because you do't yet have a value for it.
Submit the form whenever value in list A changes.
USe the submitted value of A to populate list B.

Method 2
Use CSS. I can explain this if you don't get how to use the method above.
It saves having to reload the page but it's more complicated - and you need to understand some basic CSS.

Or you can ignore what I said and read this:
http://www.roubaixinteractive.com/Pl...t_List_Box.asp
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
Reply

Tags
dynamically, dependent, list, boxes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Drop down list - auto select depending on choice from first list ciaranleeper JavaScript Forum 0 Mar 26th, 2008 10:38
[SOLVED] Creating multiple dynamic list boxes from mysql database davibugi PHP Forum 11 Nov 20th, 2007 06:12
Spacing between list items incorrect when span tag is used in a list item... MikeTheVike Web Page Design 5 Apr 18th, 2007 01:52
Creating multiple dynamic list boxes from mysql database phoenix211984 Databases 1 Sep 27th, 2006 16:19
Open a specific page dependent on what is entered into a criteria box??? IanW Web Page Design 2 Sep 15th, 2006 12:39


All times are GMT. The time now is 06:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43