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 October 4th, 2000, 05:30 PM
atarbaer atarbaer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 17 atarbaer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Here's another question:

I've got two radio buttons; if the second button is selected, I'd like to skip to a different set of questions further down on the page. Is there a simple way to do this?

Thanks for your help.

Reply With Quote
  #2  
Old October 5th, 2000, 07:13 AM
tvanbart tvanbart is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 35 tvanbart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Not sure if this is what you want, but you can do something like this:

<form>
<input type="radio">one option<br>
<input type="radio" onClick='document.location.href="#question"'>other option (skips down)<br>
<p>
...
and further down in the form:
<a name="question">
The question you want to skip to?

Note: if this skips _exactly_ down to the question you want, is dependant on the length of the page. If there is not enough page after your question, it will just skip down so that your "next" question is on-screen but not necessarily on top.
You could use the above technique to redirect to one of two "follow-up" pages.

Success, Ton

Reply With Quote
  #3  
Old October 5th, 2000, 10:51 AM
atarbaer atarbaer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 17 atarbaer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks -- that worked! (I was missing the # sign)

-----------------------

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by atarbaer:
Here's another question:

I've got two radio buttons; if the second button is selected, I'd like to skip to a different set of questions further down on the page. Is there a simple way to do this?

Thanks for your help.
[/quote]


Reply With Quote
  #4  
Old October 5th, 2000, 11:50 AM
Panasonic Panasonic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 1 Panasonic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Skipping a question if a radio button is selected


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 3 hosted by Hostway
Stay green...Green IT