HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

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 August 21st, 2000, 09:08 AM
Wolfmarsh Wolfmarsh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: High Point, NC, USA
Posts: 1 Wolfmarsh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Wolfmarsh
I was wondering if anyone could help me, Im trying to design a form, and at the top of the form i want a radio selection with two options, "easy form" and "detailed form", and i want some kind of javascript or something that when the user changes that option, it either hides the bottom half of the form (easy form) or it displays it (shown) and i want them to keep being able to toggle back and forth between them without losing data as they fill out the form. Is there any way to do this, like a hidden attribute for the input items? If you need a better description to answer my question, let me know, thanks everyone!

Reply With Quote
  #2  
Old August 23rd, 2000, 09:58 AM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 9
Put the simple form in one DIV and the extended part of the form in another DIV. Then, use onChange in the RADIO button to call the JavaScript that hides/shows the extended DIV. The form contents should not go away unless the page reloads. This means, if the person fills out the complex form and then 'hides' it via the RADIO button toggle, those contents will still be submitted. To get around this, you could have an onSumbit in the FORM tag that stops the FORM from submitting (with return=false and calls a JavaScript that processes your form data the way you want it submitted (depending on the value of the RADIO button at the top) and then submits the processed data.

[This message has been edited by pieux (edited August 23, 2000).]

Reply With Quote
  #3  
Old August 23rd, 2000, 04:09 PM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 9
NOTE: That smilie is supposed to be '' without the single quotes, but I can't seem to edit it out.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Dynamic Page Display


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