Yep, I believe these are the functions involved. If you just use one tree menu, the function is called by onclick. It changes the menu and then loads the new page. In my case it would need to change the menu on the page I am going to which is why I tried to use onLoad.
This is how you call the function:
Code:
javascript:expandMenu(3)
Here is the code:
Code:
// Load a page as if a node on the tree was clicked (synchronize frames)
// (Highlights selection if highlight is available. 0 to remove highlighting.)
function expandMenu(linkID)
{
var folderObj;
docObj = findObj(linkID);
docObj.forceOpeningOfAncestorFolders();
clickOnLink(linkID,docObj.link,'_top');
}
Code:
function clickOnLink(clickedId, target, windowName) {
highlightObjLink(findObj(clickedId));
if (isLinked(target)) {
window.open(target,windowName);
}
}
Thanks, ASchweti
Bookmarks