Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 52 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 57
Line 1... Line 1...
1
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
1
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
Line 2... Line 2...
2
 
2
 
3
function afficherSelection(aTreeChildrenId,aAttributeName,aTabBrowserId)
3
function afficherSelection(aTreeChildrenId,aAttributeName,aTabBrowserId)
4
{
4
{
5
	var uneUrl = donnerAttributSelectionArbre(aTreeChildrenId,aAttributeName);
5
  var uneUrl = donnerAttributSelectionArbre(aTreeChildrenId,aAttributeName);
6
	window.parent.frames[1].location.href=uneUrl;
6
  window.parent.frames[1].location.href=uneUrl;
Line 7... Line 7...
7
}
7
}
8
 
8
 
9
 
9
 
10
function donnerAttributSelectionArbre(aTreeChildrenId,aAttributeName)
10
function donnerAttributSelectionArbre(aTreeChildrenId,aAttributeName)
11
{
11
{
12
	var unArbre=document.getElementById(aTreeChildrenId);
12
  var unArbre=document.getElementById(aTreeChildrenId);
13
	var uneSelection = unArbre.contentView.getItemAtIndex(unArbre.currentIndex);
13
  var uneSelection = unArbre.contentView.getItemAtIndex(unArbre.currentIndex);
14
	
14
  
15
	var uneUrl;
15
  var uneUrl;
16
	if (uneSelection.firstChild.firstChild.hasAttribute(aAttributeName))
16
  if (uneSelection.firstChild.firstChild.hasAttribute(aAttributeName))
17
	{
17
  {
18
		uneUrl = uneSelection.firstChild.firstChild.getAttribute(aAttributeName);
18
    uneUrl = uneSelection.firstChild.firstChild.getAttribute(aAttributeName);
19
	}
19
  }
Line 20... Line 20...
20
	
20
  
21
	return uneUrl;
21
  return uneUrl;
22
}
22
}