JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old April 19th, 2004, 07:02 AM
jembsb jembsb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 4 jembsb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Using Jscript to hide/show dropdown boxes

Hi all,

I'm new here, and new to JavaScript. I apologise now for my lack of knowledge in JavaScript, but i am trying everything i can to learn, i need to as i would like to refine a form i am designing for work.

We use a Form creation application that has been desgined in Notes, makes it easy for us novices, but it also has advanced features (such as the ability to add custom javascript) for advanced functionality.

What i need to do is firslty onLoad, is hide 4 dropdown boxes i have created, they all have identifyers;

regional_local
housing_local
cru_local
other_local

then, based on a radio button selection, display the appropriate dropdown.

The radio button is defined as local_type, and has options:

regional location
housing location
cru location
other

I hope i have provided sufficient info, and any advise is greatly appreciated.

Thanks.

Chris

Reply With Quote
  #2  
Old April 19th, 2004, 08:58 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
The main thing you will need to learn for this task is DHTML. There are a lot of tutorials on the net that will show you how to do this. You will need to google for dhtml, javascript, forms, radio, etc.
E.g. http://developer.netscape.com/views...dman_forms.html
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old April 19th, 2004, 09:29 AM
jembsb jembsb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 4 jembsb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the reply stumpy. There's definitely plenty of info on the net that i've looked at, but i haven't been able to find anything that quite explains it clearly, or works in my environment.

Am hoping to get further examples here of how to code it.

Can anybody provide some examples??

Thanks.

Reply With Quote
  #4  
Old April 24th, 2004, 05:20 AM
jembsb jembsb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 4 jembsb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi there

I've managed to work out how to hide the dropdown boxes using the getElementById command, the problem with this is, it is only hiding the dropdown field itself and not the label etc. How would i go about hiding the whole lot?

Thanks.

Reply With Quote
  #5  
Old April 26th, 2004, 03:27 AM
jembsb jembsb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 4 jembsb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can anybody please advise how i can go about making a dropdown list an text "input"
Field rather than a "select", based on a previous dropdown selection?

Is this possible?

Thanks.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Using Jscript to hide/show dropdown boxes


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 | 
  
 





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