Connecting Tech Pros Worldwide Help | Site Map

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

NotGiven
Guest
 
Posts: n/a
#1: Jul 20 '05
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.


Janwillem Borleffs
Guest
 
Posts: n/a
#2: Jul 20 '05

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



"NotGiven" <noname@nonegiven.net> schreef in bericht
news:AlIFb.926$ux4.664@bignews4.bellsouth.net...[color=blue]
> 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[/color]
anders[color=blue]
> NO. Otherwise hide the questions.
>
> I am a novice with Javascript but a decent programmer so I can figure it[/color]
out[color=blue]
> if you give me some direction or ideas.
>[/color]

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



Janwillem Borleffs
Guest
 
Posts: n/a
#3: Jul 20 '05

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



"Janwillem Borleffs" <jw@jwscripts.com> schreef in bericht
news:3fe76596$0$64978$1b62eedf@news.euronet.nl...[color=blue]
>
> function toggle(show) {
> document.getElementById('morequestions').style.dis play = show ? 'block'[/color]
:[color=blue]
> 'none';
> }
> ....[/color]

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



Lee
Guest
 
Posts: n/a
#4: Jul 20 '05

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


NotGiven said:[color=blue]
>
>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.[/color]

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.

Lasse Reichstein Nielsen
Guest
 
Posts: n/a
#5: Jul 20 '05

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


"Janwillem Borleffs" <jw@jwscripts.com> writes:
[color=blue]
> I have forgotten how this works in Netscape 4, so I must leave this question
> open to others.[/color]

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 - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
NotGiven
Guest
 
Posts: n/a
#6: Jul 20 '05

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


When you say netcsape 4 , do you mean 4.7? v 4.7 is the one in concern.
Thanks.


"Lasse Reichstein Nielsen" <lrn@hotpop.com> wrote in message
news:4qvsv6xu.fsf@hotpop.com...[color=blue]
> "Janwillem Borleffs" <jw@jwscripts.com> writes:
>[color=green]
> > I have forgotten how this works in Netscape 4, so I must leave this[/color][/color]
question[color=blue][color=green]
> > open to others.[/color]
>
> 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[/color]
content,[color=blue]
> so there is no way around that.
>
> I would have recommended just disabeling the questions, but it doesn't[/color]
seem[color=blue]
> like Nescape 4 understands "elem.disabled = true" either.
> I don't know if there is anything smart to do.
>
> /L
> --
> Lasse Reichstein Nielsen - lrn@hotpop.com
> DHTML Death Colors:[/color]
<URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>[color=blue]
> 'Faith without judgement merely degrades the spirit divine.'[/color]


Lasse Reichstein Nielsen
Guest
 
Posts: n/a
#7: Jul 20 '05

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


"NotGiven" <noname@nonegiven.net> writes:

Please don't top post.
[color=blue]
> When you say netcsape 4 , do you mean 4.7? v 4.7 is the one in concern.[/color]

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 - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Closed Thread