By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,814 Members | 2,162 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,814 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a

"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

P: n/a

"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

P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
"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 discussion thread is closed

Replies have been disabled for this discussion.