Nesting multiple show/hide divs

S

Sarah W

Forgive me, I'm still pretty newb with javascript.

I was asked to start updating a webpage for an organization I belong
to, and I'd like to make it a bit easier to read. Before I get too
far, the current page is located http://www.northshield.org/Posts/Display.aspx?ID=8

As you can see, it is very long, and pretty confusing. What I'd like
to do is for each name level, use a show/hide div for the one under
it. For example, all of the headers would always show. But you could
click on that, and the level 2 names would show up. Click on a level
2 name, and level 3 names (but only for the name that you clicked on)
come up, and so on and so forth.

I haven't even been able to get the first show/hide div to work, let
alone any of them underneath. Am I explaining myself well? I hope
so!

Sarah
(e-mail address removed)
 
E

Evertjan.

Sarah W wrote on 12 mrt 2008 in comp.lang.javascript:
Forgive me, I'm still pretty newb with javascript.

I was asked to start updating a webpage for an organization I belong
to, and I'd like to make it a bit easier to read. Before I get too
far, the current page is located
http://www.northshield.org/Posts/Display.aspx?ID=8

As you can see, it is very long, and pretty confusing. What I'd like
to do is for each name level, use a show/hide div for the one under
it. For example, all of the headers would always show. But you could
click on that, and the level 2 names would show up. Click on a level
2 name, and level 3 names (but only for the name that you clicked on)
come up, and so on and so forth.

I haven't even been able to get the first show/hide div to work, let
alone any of them underneath. Am I explaining myself well? I hope
so!

Yes, you are.

You did not ask anything else, but:

Woudn't it be far more logical to do this serverside,
by making virtual pages based on an index number with asp.net,
with as your .aspx gives away is available?

NG: <microsoft.public.dotnet.framework.aspnet>
 
S

Sarah W

Cant really do anything server side because I don't have access to
it. I'm just updating and changing this page that I hand over to
someone else and they plug it into the rest of the site.
 
E

Evertjan.

Sarah W wrote on 12 mrt 2008 in comp.lang.javascript:

[Please do not toppost on usenet,
and do not quote signatures]
Cant really do anything server side because I don't have access to
it. I'm just updating and changing this page that I hand over to
someone else and they plug it into the rest of the site.

That is what serverside programming is all about, Sarah.

Just put your serverside code into the file
and upload it or have it oploaded to the server.

=========

However, if you desperately want to do it clientsside,
please start learning javascript and CSS.

Then try something simple and show the results here.

Starting off with the specifications you wanted on a lagre page is not
viable, and if you do not like a steep learning curve,
better put someone on it with the necessary experience, paid or non paid.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top