Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 21st, 2004, 08:48 AM
dsb dsb is offline
PerlGuy
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Posts: 714 dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 15 h 44 m 20 sec
Reputation Power: 36
Send a message via AIM to dsb
Dynamic Form Elements

Okay, if I sound like I don't know what I'm talking about, it's because I don't. I'm usually a back-end processing kind of guy but I'm the only programmer here so now I get both jobs.

Anyway, I've seen with greater frequency, forms which update based on a given choice from a drop down menu or other choice based form element. For example, a selection is made from a single drop down menu, and based on that choice another drop down menu appears. Go back to the first menu and choose another option, and a different second menu appears.

What language is this kind of thing most often and easily done it? Any input is appreciated.
__________________
- dsb -
Perl Guy

Reply With Quote
  #2  
Old July 21st, 2004, 09:14 AM
greg85374 greg85374 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 40 greg85374 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 17 sec
Reputation Power: 5
you can im me greg85374 on yahoo to get into this

We need to know what type of drop down element you using.
A menu would be easiest.
Below the word View on the top of your Vb application there is a menu Icon

Click on the form you want your menu on then on the menu icon.

Now lets say your first menu item is "file"
under caption put &File
Under name put MnuFile(this is how you refer to it in code)
now youll hit next
Youll see 4 arrows to the right of the cmdbutton next
use the -> arror(this indicates a bubitem of file)
Now type in "Open" under Caption and MnuOpen under Name
Now youve a subitem called Open under the "File"option
now to get a sub item of a subitem
your press the -> arrow 2x.
Ill attach a very basic example wihtou any real code to speak of

What program language though..I use vb
Attached Files
File Type: zip Menuex.zip (1.4 KB, 229 views)

Reply With Quote
  #3  
Old July 21st, 2004, 10:12 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 36 m 40 sec
Reputation Power: 92
Is this not for a website, not a vb application?
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #4  
Old July 21st, 2004, 01:18 PM
dsb dsb is offline
PerlGuy
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Posts: 714 dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 15 h 44 m 20 sec
Reputation Power: 36
Send a message via AIM to dsb
Yes it is for a website...I'm not sure why that happened.

Reply With Quote
  #5  
Old July 21st, 2004, 02:54 PM
jds361 jds361 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 29 jds361 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 41 m 37 sec
Reputation Power: 0
I think what you're talking about are "Dependent Lists", and there are two ways you can do them:

1) You can have them automatically submit a form every time they choose something on your list, causing a page refresh to get the dependent data based on the submission.

2) You can dynamically generate javascript code using PHP, JSP, Coldfusion and the like that will make all the content of the lists client-side. You can find a good tutorial on how to do this in Coldfusion here: http://tutorial95.easycfm.com/

Hope that helps!

Reply With Quote
  #6  
Old July 22nd, 2004, 11:14 AM
dsb dsb is offline
PerlGuy
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2001
Posts: 714 dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level)dsb User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 15 h 44 m 20 sec
Reputation Power: 36
Send a message via AIM to dsb
It does...thanks a lot.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Dynamic Form Elements


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway