473,411 Members | 1,880 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,411 software developers and data experts.

Creating nodes so categories show subcategories

I've got a bookstore I'm developing, and I wanted to list all the
categories on the home page of the site. However, there are so many,
that they now extend way below the screen, making the page look sloppy.
I want, therefore, to limit the number of categories on the home page,
to a few general categores, then clicking on one will reveal the
subcatgories underneath.

How do I go about doing this?

Thanks,

Bill
PS. Could you please send me an email to respond to incase I have follow
up questions? Thanks, I appriciate it.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
4 3214
Here is a page with some links to some examples.
http://www.aspfaq.com/2270

Ray at work

P.S. Replies stay in the group.

"Bill" <Bi***********@gospellight.com> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
I've got a bookstore I'm developing, and I wanted to list all the
categories on the home page of the site. However, there are so many,
that they now extend way below the screen, making the page look sloppy.
I want, therefore, to limit the number of categories on the home page,
to a few general categores, then clicking on one will reveal the
subcatgories underneath.

How do I go about doing this?

Thanks,

Bill
PS. Could you please send me an email to respond to incase I have follow
up questions? Thanks, I appriciate it.

Jul 19 '05 #2
Ray, thank you, but I see I have not explained myself correctly. What
you have sent me are FAQ's about drop down lists and combo boxes. This
is not what I'm looking for.

What I'm talking about is when you have a column filled with category
names, that run down the left column of a page, and you click on one of
the category names, and all of the subcategories appear below it in a
node.

I'm not refering to list boxes or combo boxes or any other type of box.

Thanks, and sorry that I did not explain myself better.

Bill

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
"Bill" <Bi***********@gospellight.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ray, thank you, but I see I have not explained myself correctly. What
you have sent me are FAQ's about drop down lists and combo boxes. This
is not what I'm looking for.

What I'm talking about is when you have a column filled with category
names, that run down the left column of a page, and you click on one of
the category names, and all of the subcategories appear below it in a
node.


For each of the Category links, include the ID of the category. For ex:

<a href="mypage.asp?cID=1">Fiction</a>
<a href="mypage.asp?cID=2">Non Fiction</a>
....

Then, when you click on the link, mypage.asp should check for
Request("cID"), then do a query to get the subcategories that are associated
with this category ID, and display those subcategories using the same link
style:

<a href="mysubpage.asp?sID=1">Science Fiction</a>
<a href="mysubpage.asp?sID=2">Romance</a>
....

Then, when you click on the link, mysubpage.asp should check for
Request("sID"), then do a query to get the books in that subcategory.

Hope this helps.
Regards,
Peter Foti
Jul 19 '05 #4
Whoops. Sorry about that.

I find the challenge of doing this not in the code, but in the fact that you
may have to work with other people on the site. What I mean is that I've
put together some pages that would look at
request.servervariable("path_info") and expand sub-nav links accordingly.
But, when you have a designer who does everything in Dreamweaver, I don't
think that this will work. So, what I've had to do in the past was create
"top.asp" includes in each subfolder that would have the sub-nav hard-coded
(html'ed) for each subdirectory. This is the best compromise that I've been
able to come up with. It's still a bit of a PITA, since you still wind up
with multiple files that have the same HTML and would all have to be updated
if you wanted to change the navigation, but it's better than having a site
with 1000 static html pages that have the navigation all in them. That's a
mess. I'm actually in the process of converting our whole intranet from that
bad method to have a more manageable navigation system. When this intranet
was created, I didn't work here. That's my excuse!

Ray at work

"Bill" <Bi***********@gospellight.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ray, thank you, but I see I have not explained myself correctly. What
you have sent me are FAQ's about drop down lists and combo boxes. This
is not what I'm looking for.

What I'm talking about is when you have a column filled with category
names, that run down the left column of a page, and you click on one of
the category names, and all of the subcategories appear below it in a
node.

I'm not refering to list boxes or combo boxes or any other type of box.

Thanks, and sorry that I did not explain myself better.

Bill

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #5

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

Similar topics

2
by: Troy Lynch | last post by:
I'm working on writing a website which I need to have lists of products listed in categories and subcategories, and need to keep track of whats in the tree. Like how many products from the root all...
1
by: Bill | last post by:
I have a page that lists categories on the left, and I'd like to be able to click on one, and have a node pop out, revealing subcategories so users can navigate to them that way. How does one...
2
by: shane-dated-1130371478.43db8f | last post by:
Hello all, I am working on a website for a bookstore and have run into a bit of a snag. I am trying to write a form where an admin can set the category for a book. However, categories can be of...
1
by: Sonu Kapoor | last post by:
Hi guys, I know that counting of nodes is not a big deal. But I need to do something where I cant get any solution. Here is how my xml looks like. <?xml version="1.0" encoding="utf-8"?>...
13
by: hornedw | last post by:
I have been working on a ecommerce website for myself. What I needed some assistance on was when i was trying to display the categories/subcategories for the different products. I decided to use...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
3
Staria
by: Staria | last post by:
Hi... I'm currently working on a project where I would like to have Categories and SubCategories. I've banged my head on this for several days, but can't seem to get this the way I want it to...
2
by: DotNetNewbie | last post by:
Hello, I need to display a list of categories on the left side of a page, and I am confused how I would do this using a List Control (as appose to weaving my own HTML on the server side). My...
2
by: itpvision | last post by:
Hello, I have a link navigation of categories retrieved from the database, while I know how to display subcategories based on category link clicked with classical approach, I want to do this with...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.