• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Showing dynamic Categories on left pane

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure where to post this, sorry if it is in wrong forum.

I have a page that has a left pane. In this pane I'll show some dynamic links (Categories) that I get from database.

At first it will look like:

Home
Products
My Cart
My Profile

When the user clicks product, it will look like:

Home
Products
___Books
___Software

My Cart
My Profile

again, when the user clicks on Books, it will look like:

Home
Products
___Books
______Fiction
______Non Fiction
___Software

My Cart
My Profile

When user clicks on 'Fiction', the fiction page will be shown in an IFrame and it will have no link and different color to indicate current position:

Home
Products
___Books
______Fiction
______Non Fiction
___Software

My Cart
My Profile

I've managed to do this using a servlet. The links of are like ?catID=XXX&parentID=XXX. From that I can show a product description for Categories (parentID==0) or I can show product listing for SubCategories (parentID!=0). These will be dispalyed in an inline frame.

Every time user clicks a link, the servlet generates a new page with correct LeftPane and changes URL of the IFrame.

But, there is no real need to go to the server If I populate the lefe pane first time. Then I can simply change URL of the IFrame, and the servlet will populate it.

I want a way to populate full categories links (I'm using tables and 'sub tables'), but only one of the categories will be displayed at a time.

I guess JavaScript is the right choice, but all google searchs returned me results for Top Menu.

Can anyone help me on this ?


.
[ August 09, 2007: Message edited by: Piash Chaudhuri ]
 
Piash Chaudhuri
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found a nice code. I hope I will be able to modify it for my need.
reply
    Bookmark Topic Watch Topic
  • New Topic