User Profile & Activity

Dasha Fedorova Member
Page
of 4
Posted: September 23, 2009 3:36 AM

Gordon,

My problem is that if I have more than one (multiple) WebMenuBars on the page, and they happen to have repeating access keys, then only the first menu bar reacts to the Alt+a, and there's no way to expand the second menu bar's item with the same access key.  Try putting two web menu bars on the page, and give their menu commands matching access keys.  So the first web menu bar will have 3 menu commands with access key a, b, c, and the second one will have the same - 3 commands with a, b, c.  Only the first web menu's commands will expand.  It doesn't really matter if the commands are added programmatically or not.  What's more important is that the WebMenuBars are added dynamically, and there's no way of knowing how many are on the page, or what are the assigned access keys for the menu commands.

Hopefully this explains my problem better..

Dasha.

Posted: September 21, 2009 9:01 AM

This worked! Thank you.

Posted: September 18, 2009 9:23 AM

Actually , the main task was to change the Tag value on the currently selected node.  so somehing like this:

function Button1_onclick() {
    var WebTreeView1 = ISGetObject("WebTreeView1");
    var selectedNode = WebTreeView1.GetSelectedNode();

    selectedNode.Tag = "Tag is set on Button1_onclick event";
    document.getElementById("Text1").value = WebTreeView1.GetSelectedNode().Tag;
}

I realize that the changes made to the selected node variable are not sticking, but how can I make the modification to the currenlty selected node? 

Posted: September 18, 2009 8:01 AM

Gordon,

Thank you for your response.  This method works great if I have one MenuBar on the page.  In our setup, I have to assign the access keys dynamically, so if I have multiple menu bars on one page, the first item for all of them will have the access key 'a'.  I tried this scenario, and I cannot get the second menu's items to expand even if it is initially selected.  So basically, my question is, how can I operate this feature in a dynamic environment (sharepoint web parts), where I don't know how many menu bars I will have on the pge, and the access keys are assigned dynamically, starting with 'a'.

Thank you,

Dasha Fedorova

Posted: September 10, 2009 4:10 AM

Thank you Glenn, the workaround worked.

All times are GMT -5. The time now is 7:30 AM.
Previous Next