Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Blame | Last modification | View Log | RSS feed

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;
}