|
|
#1 |
|
Frenzied Member
Join Date: Oct 05
Location: Mumbai, India
Posts: 1,394
![]() |
In a web browser project, there are 2 CommandButtons named cmdBack & cmdForward. Each of the 2 CommandButtons also have another CommandButton accompanying them clicking which will render the URLs the user has visited in a menu as & how he navigates from one page to another. These 2 CommandButtons are named cmdBackArrow & cmdForwardArrow. Clicking these 2 CommandButtons will display menus named mnuBackArrow & mnuForwardArrow respectively. The 4 CommandButtons behave in the same way as the IE Back & Forward buttons.
Assume that a user visits www.abcd.com/page1.html. In this page, he clicks a link which takes him to www.abcd.com/page2.html. In page2, he clicks a link which takes him to www.abcd.com/page3.html & finally in page3, he clicks a link which takes him to www.abcd.com/page4.html. When the user is in page4 & he clicks cmdBackArrow, mnuBackArrow will get displayed which will have 3 menu items - page3, page2 & page1 (in that order). If the user clicks the Back button & comes to page3, mnuBackArrow will have 2 menu items - page2 & page1 & mnuForwardArrow will have 1 menu item - page4. Now I want to load another menu, named mnuURLs, with the menu items of these 2 menus. Suppose the user reloads the browser & goes to page1. Though mnuBackArrow doesn't have any menu items since it has just loaded, I want page1 to be added as a menu item in the menu mnuURLs. This is an exception. After this, mnuURLs should be loaded with the menu items existing in mnuBackArrow & mnuForwardArrow. So when the user first goes to page1, page1 should be the first item in mnuURLs. Not only this, page1 should also be check marked. When the user then goes to page2, mnuURLs should have 2 menu items - page1 & page2 with page2 being checked, so on & so forth. Now when the user comes back to page3 from page4 by clicking cmdBack, mnuURLs should show 4 menu items - page1, page2, page3 & page4 with page3 being check marked (since the user is currently in page3). How do I accomplish this?
__________________
ARPAN IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS! NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE! PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE? |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|