| 
       
          
                    I've been trying to get the menu item in dynamic tree menu to stay highlighted when clicked on and directed to that page.
       
      Return to Recent Questions
 
  
Q:
 I've been trying to get the menu item in dynamic tree menu to stay highlighted
 when clicked on and directed to that page.
  
A:
Tree Menu doesn't save a pressed
item as it saves a tree state.  It works within 1 page only and if you
reload the page you should set a pressed item using Javascript API:
  
function apyt_ext_setPressedItem(menuInd, itemID)
  
        <script type="text/javascript">
  
        var i = 4 //index of the selected item 
        onload=setPressed; 
        function setPressed() 
        { 
             dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i)); 
        } 
      
  
To expand specific items you should use the following function: 
 dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex (0, 11), 1); 
  
 
 
  
Return to Recent Questions
           Related: 
         
         - Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
 - Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
 - Sep 06, 2006 - The Items of the javascript tree view stay expanded in the same state.
 - Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
 - Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
 - Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
 - Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
 - Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
 - Sep 29, 2006 - I tried to use javascript function with the "Title item" of my javascript tree view.
 - Oct 01, 2006 - All of the items in html pull down menu are different sizes.
 - Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
           
               
   |