473,657 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3226
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******** ******@TK2MSFTN GP09.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******** ********@TK2MSF TNGP09.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.as p?cID=1">Fictio n</a>
<a href="mypage.as p?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">Sci ence Fiction</a>
<a href="mysubpage .asp?sID=2">Rom ance</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.serverv ariable("path_i nfo") 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******** ********@TK2MSF TNGP09.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
3520
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 the way down through the subcategories. I was thinking maybe in each category it would have a field which lists all the root categories. I hope this is a good explanation... it's kinda hard to explain I guess. I figure there were probably some...
1
1544
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 create a node function in ASP pages? Thanks, Bill
2
4483
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 an arbitrary depth so I need something which resembles a windows "tree view." For example: Primary category Art and Architecture has subcategory history has subcategory African etc etc.
1
1608
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"?> <CategoryList> <Category> <MainCategory ID="3">XML</MainCategory>
13
3868
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 the modified preorder tree transversal algorithm. What I wanted was on the first page is to display the catogories as follows Books (35) Electronics(23) The number inside the parenthesis being the number of products in that
4
2506
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 cross-posting. I am trying to build a "checklist", where a user can navigate to an ASP page on the intranet which shows a list of "questions" that the user can check off. I am trying to figure out how to do this so that it is scalable, but I am...
3
4591
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 display. Thought I would see if I might be able to get a little help. What I would like is for my code to print out the categories/subcategories for my menu and want it to look like: Category 1 SubCategory 1 SubCategory 2 Category...
2
1832
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 HTML should look like: <ul>
2
2661
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 ajax, The problem is with the classical style,I know the GET sent and the row im in with the category, so by simple comparison, I know how to display the subcategories under its parent category, but with ajax, I cannot know the GET and compare...
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8319
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8612
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.