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 ]