Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:22 AM
Bill
Guest
 
Posts: n/a
Default 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!
  #2  
Old July 19th, 2005, 09:22 AM
Ray at
Guest
 
Posts: n/a
Default Re: Creating nodes so categories show subcategories

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" <BillZimmerman@gospellight.com> wrote in message
news:OZS1tN9nDHA.2140@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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.[/color]


  #3  
Old July 19th, 2005, 09:22 AM
Bill
Guest
 
Posts: n/a
Default Re: Creating nodes so categories show subcategories

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!
  #4  
Old July 19th, 2005, 09:22 AM
Peter Foti
Guest
 
Posts: n/a
Default Re: Creating nodes so categories show subcategories

"Bill" <BillZimmerman@gospellight.com> wrote in message
news:%23rA$$$9nDHA.1296@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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.[/color]

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


  #5  
Old July 19th, 2005, 09:22 AM
Ray at
Guest
 
Posts: n/a
Default Re: Creating nodes so categories show subcategories

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" <BillZimmerman@gospellight.com> wrote in message
news:%23rA$$$9nDHA.1296@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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![/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles