diff xul/content/tree_nav.js @ 203:bf945fcf9105

restarting with version control of xul sidebar/toolbar
author luginbue
date Fri, 27 Feb 2004 11:24:53 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xul/content/tree_nav.js	Fri Feb 27 11:24:53 2004 +0100
@@ -0,0 +1,12 @@
+function open_link()
+{
+var t=document.getElementById("menu_tree");    //baum in variable t holen
+var l=t.view.getItemAtIndex(t.currentIndex);	        //aus baum treeitem herausholen mit dem selected index (currentIndex)
+var d=l.firstChild.firstChild.getAttribute("link");       //aus treeitem treecell (mit firstChild.firstChild) und dann dort wert von id herausholen (mit getAttribute)
+if (d!=""){
+  //alert(d);
+
+     window.content.location.href="http://pythia2.unibe.ch:8080/docuserver/digitallibrary/digilib.jsp?lv=1&fn="+d;
+  
+}
+}