Hi! This one is a little over my head, but I'd really like to accomplish it. Here's my code so far:
and here is the page it's displayed onCode:'Setting Connection set MyConnection = server.createobject("ADODB.Connection") set rsProducts = server.createobject("ADODB.recordset") %> <!--#include file="db.asp"--> <% 'Get ALL records from the database SQLQuery = "SELECT * FROM Query2 WHERE Active = 'Yes' ORDER BY Proper, LineOrder" set rsProducts = MyConnection.Execute(SQLQuery) do while not rsProducts.EOF 'Get the form fields Category = rsProducts("Category") Product = rsProducts("Product") Proper = rsProducts("Proper") if NOT rsProducts.EOF OR rsProducts.BOF then While NOT rsProducts.EOF if tmpCat <> rsProducts("Category")then Response.Write "</small><strong>"& rsProducts("Proper") &"</strong><br/><small>" end if Response.Write "<font face='wingdings'>Ø </font>" & rsProducts("Product") &"<br/>" tmpCat = rsProducts("Category") rsProducts.MoveNext() Wend end if loop MyConnection.close
http://www.wittymom.com/sidemenu.asp
What I'd like to accomplish is to have the products expanded only when that category is chosen, and the other categories minimized. How do I go about that? The categories will be chosen from the field rsProducts("Category") from my main menu. i.e., this is how it is now
CATEGORY A (<-- chosen category)
- Product 1
- Product 2
CATEGORY B
- Product 1
- Product 2
CATEGORY C
- Product 1
- Product 2
...and this is how I would like it to be
CATEGORY A (<-- chosen category)
- Product 1
- Product 2
CATEGORY B
CATEGORY C
Thanks, as always. Couldn't have gotten this far without SitePoint!!
Amber






Bookmarks