473,324 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

dynamically visible section: How to? Does it work in Netscape 4.7?

I am creating a survey with a question if answered YES, you skip the next
few questions. I need it to only show the next few quesitons IF they anders
NO. Otherwise hide the questions.

I am a novice with Javascript but a decent programmer so I can figure it out
if you give me some direction or ideas.

Many thanks.
Jul 20 '05 #1
6 1157

"NotGiven" <no****@nonegiven.net> schreef in bericht
news:Al***************@bignews4.bellsouth.net...
I am creating a survey with a question if answered YES, you skip the next
few questions. I need it to only show the next few quesitons IF they anders NO. Otherwise hide the questions.

I am a novice with Javascript but a decent programmer so I can figure it out if you give me some direction or ideas.


function toggle(show) {
document.getElementById('morequestions').style.dis play = show ? 'block' :
'none';
}
.....
<input type="radio" value="Yes" onclick="toggle(true)" name="somequestion"
/>Yes<br />
<input type="radio" value="No" onclick="toggle(false)" name="somequestion"
/>No<br />

<span id="morequestions" style="display:block">
....
</span>
HTH,
JW

Jul 20 '05 #2

"Janwillem Borleffs" <jw@jwscripts.com> schreef in bericht
news:3f***********************@news.euronet.nl...

function toggle(show) {
document.getElementById('morequestions').style.dis play = show ? 'block' : 'none';
}
....


Excuse me, I didn't properly read the subject. This will only work in
Netscape 6+.

I have forgotten how this works in Netscape 4, so I must leave this question
open to others.
JW

Jul 20 '05 #3
Lee
NotGiven said:

I am creating a survey with a question if answered YES, you skip the next
few questions. I need it to only show the next few quesitons IF they anders
NO. Otherwise hide the questions.

I am a novice with Javascript but a decent programmer so I can figure it out
if you give me some direction or ideas.


The most common, most reliable, and simplest way to do this is to
ask only one question (or a small number) per screen, and let the
server decide which question(s) to display next.

If it's a serious survey, you don't want to limit your population
to only those who have JavaScript enabled, anyway.

Jul 20 '05 #4
"Janwillem Borleffs" <jw@jwscripts.com> writes:
I have forgotten how this works in Netscape 4, so I must leave this question
open to others.


You can't do it in Netscape 4. You can make the questions hidden, but they
will still take up space on the page. Netscape 4 doesn't reflow the content,
so there is no way around that.

I would have recommended just disabeling the questions, but it doesn't seem
like Nescape 4 understands "elem.disabled = true" either.
I don't know if there is anything smart to do.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #5
When you say netcsape 4 , do you mean 4.7? v 4.7 is the one in concern.
Thanks.
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:4q**********@hotpop.com...
"Janwillem Borleffs" <jw@jwscripts.com> writes:
I have forgotten how this works in Netscape 4, so I must leave this question open to others.
You can't do it in Netscape 4. You can make the questions hidden, but they
will still take up space on the page. Netscape 4 doesn't reflow the

content, so there is no way around that.

I would have recommended just disabeling the questions, but it doesn't seem like Nescape 4 understands "elem.disabled = true" either.
I don't know if there is anything smart to do.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html> 'Faith without judgement merely degrades the spirit divine.'

Jul 20 '05 #6
"NotGiven" <no****@nonegiven.net> writes:

Please don't top post.
When you say netcsape 4 , do you mean 4.7? v 4.7 is the one in concern.


I actually mean 4.80, which is the one I have installed. If it doesn't
support something, it's a fair bet that 4.7 won't either.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: TheKeith | last post by:
I don't know much about javascript, so take it easy on me. Is there a way to dynamically change a CSS layers dimensions on the fly. Here is what I'm doing. I have a bunch of thumbnails that when...
3
by: The Pritchard | last post by:
I want the user to be able to save the information displayed on a dynamically created page. When I write a script like the following: <SCRIPT> winNew = window.open("","test");...
27
by: Nicholas Couch | last post by:
I have a little form with a couple of dynamically generated list boxes. When the user makes a selection from the first box, the second box is refreshed. When they make a selection from the second...
12
by: DEN | last post by:
Hello, I need to remove toolbar and menubar from my current window (not opened with window.open, it would be too easy!!!). I've tried to use the window.toolbar.visible=false property, but it has...
0
by: CSDunn | last post by:
Hello, I have an Access 2000 ADP main form called frmAD_OpeningForm that needs to support several possible sub forms. The subform that should appear would be based on the combined bound values...
12
by: Jerad Rose | last post by:
I searched for a while trying to find the answer to this, but to no avail. I am trying to find the best way (or any way) to dynamically show and hide groups of TR's. For example, I have a...
8
by: simon | last post by:
On code behind file: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not Page.IsPostBack Then Dim ctrl As New LinkButton ctrl.ID =...
2
by: Wee Bubba | last post by:
the lower part of my page consists of a dataList along with other server controls and HTML markup. this is my data display section. the upper part of my page is a data entry section. what I want...
7
by: Nathan Sokalski | last post by:
I have a page which I dynamically add several usercontrols (*.ascx files) to using the following code: Public Sub Refresh() For Each section As DataRow In Me.GetSections().Rows...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.