New file |
0,0 → 1,27 |
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); |
|
function afficherSelection(aTreeChildrenId, aAttributeName, aTabBrowserId) |
{ |
var uneUrl = donnerAttributSelectionArbre(aTreeChildrenId, aAttributeName); |
window.parent.frames[1].location.href = uneUrl; |
} |
|
|
function donnerAttributSelectionArbre(aTreeChildrenId, aAttributeName) |
{ |
var unArbre = document.getElementById(aTreeChildrenId); |
var uneSelection = unArbre.contentView.getItemAtIndex(unArbre.currentIndex); |
|
var uneUrl; |
if (uneSelection.firstChild.firstChild.hasAttribute(aAttributeName)) |
{ |
uneUrl = uneSelection.firstChild.firstChild.getAttribute(aAttributeName); |
} |
|
return uneUrl; |
} |
|
function compileSelection(listid) |
{ |
window.parent.frames[1].location.href="eribo_traducteur.php?"+listid+"="+listid; |
} |