Web Design Forums

HTML and CSS Help

Having problems with these web design scripting? Ask here.

Cascading Form



Site of the Month Nominations
ENTER YOUR SITE NOW!

Reply
 
LinkBack Thread Tools
Old February 4 '10, 12:13 PM (#1)
Jrwhar is offline
New Member!
 
Jrwhar's Avatar
 
Join Date: February 2010
Posts: 5
Jrwhar is an unknown quantity at this point
Cascading Form

Basically I need a form that has two drop down boxes and they second chanes based on the first, and depending on the second either a checkbox or another form comes up. Seeing as how Im a beginner and Im lerning as I go along, I wound up getting completely lost. If anyone has any advice or can point me to a tutorial it would be very very much appreciated!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 12:52 PM (#2)
Baniboy is offline
WDF Member
 
Baniboy's Avatar
 
Join Date: January 2010
Posts: 40
Baniboy is an unknown quantity at this point
You need to get familiar with javascript to be able to do this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 01:32 PM (#3)
Jrwhar is offline
New Member!
 
Jrwhar's Avatar
 
Join Date: February 2010
Posts: 5
Jrwhar is an unknown quantity at this point
I have some javascript in there I was looking for something more specific. Ill post up what I have so far.If you could help me out it would be greatly appreciated.
Attached Files
File Type: html form.html (4.9 KB, 21 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 01:59 PM (#4)
Jrwhar is offline
New Member!
 
Jrwhar's Avatar
 
Join Date: February 2010
Posts: 5
Jrwhar is an unknown quantity at this point
Wow actually just pointing out that it was javascript helped me out alot. Before I was just searching cascading dropdown which didnt really help me at all cuz I kept getting stuck. Thank you. p.s. any additional or specific ino would still e really helpful
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 02:06 PM (#5)
Baniboy is offline
WDF Member
 
Baniboy's Avatar
 
Join Date: January 2010
Posts: 40
Baniboy is an unknown quantity at this point
Hide the second selection menu using display: none; and then have javascript change the selection menu to display: block; based on the value of the first menu.

So make selection menus for all of the variations you want. Then have javascript enable visibility one at a time based on the value of the first selection menu.

Another thing you might want to try is to fit them all in one selection menu. Just give sub-selections a padding and use labels as those "hardware" and "software" selections.

That's how I would do it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 02:09 PM (#6)
Jrwhar is offline
New Member!
 
Jrwhar's Avatar
 
Join Date: February 2010
Posts: 5
Jrwhar is an unknown quantity at this point
Wow thank you so much Ill get to work on it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 02:33 PM (#7)
Jrwhar is offline
New Member!
 
Jrwhar's Avatar
 
Join Date: February 2010
Posts: 5
Jrwhar is an unknown quantity at this point
How do I make javascript enable visibility based on a previous selection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 02:39 PM (#8)
Baniboy is offline
WDF Member
 
Baniboy's Avatar
 
Join Date: January 2010
Posts: 40
Baniboy is an unknown quantity at this point
Code:
if(*selection menu value condition here*)
      {
        document.getElementById(element).style.display = 'block';
      }
That should be enough to change visibility. For getting form input value you could take example of many javascript form validators.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » HTML and CSS Help

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form mail: User defines recipient in form UNarmed PHP 8 January 29 '10 10:44 AM
Quick contact form question - help please :) emmaburge PHP 2 October 21 '09 06:02 PM
ASP form not working Ella Other Languages 16 January 15 '08 12:27 AM
My mail form causes "Page has Expired" in IE TheGardener PHP 2 March 24 '07 03:04 PM
Help! Form POST to another page PLUS js control. MEGAginge Javascript, AJAX, and JSON 0 September 21 '05 06:43 PM

 
User Infomation
Your Avatar

Site Of The Month

Ticket Cake
Ticket Cake

Ticket Cake is a drupal based event ticketing platform. It features that ability to browse events and share them.

Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:31 AM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163