[Zope-CVS] CVS: Packages/Moztop/moztop/content/Explorer - Explorer.js:1.5 ExplorerOverlay.xul:1.4

Paul Everitt paul@zope.com
Fri, 7 Feb 2003 10:29:14 -0500


Update of /cvs-repository/Packages/Moztop/moztop/content/Explorer
In directory cvs.zope.org:/tmp/cvs-serv18002/content/Explorer

Modified Files:
	Explorer.js ExplorerOverlay.xul 
Log Message:
another try

=== Packages/Moztop/moztop/content/Explorer/Explorer.js 1.4 => 1.5 ===
--- Packages/Moztop/moztop/content/Explorer/Explorer.js:1.4	Fri Feb  7 06:34:05 2003
+++ Packages/Moztop/moztop/content/Explorer/Explorer.js	Fri Feb  7 10:28:43 2003
@@ -319,3 +319,28 @@
     alert('Done reloading Content Tree.');
     tree.builder.rebuild();
 }
+
+var p = new XMLHttpRequest();
+
+function serializeResponse(e)
+{
+  alert('bla');
+  if (p.responseXML) {
+    //var s = new XMLSerializer();
+    var d = p.responseXML;
+    ///var str = s.serializeToString(d);
+  }
+}
+
+function openResource() {
+  p.onload = serializeResponse;
+  p.open("GET", "http://localhost:8080/Plone/contents.rdf", false);
+  p.send(null);
+
+  //var localhostds = new RDFDataSource();
+  //localhostds.loadFromString('')
+
+  //var explorer=document.getElementById("explorertree");
+  //explorer.database.AddDataSource(localhostds.getRawDataSource());
+  //explorer.builder.rebuild();
+}


=== Packages/Moztop/moztop/content/Explorer/ExplorerOverlay.xul 1.3 => 1.4 ===
--- Packages/Moztop/moztop/content/Explorer/ExplorerOverlay.xul:1.3	Thu Jan 30 14:01:30 2003
+++ Packages/Moztop/moztop/content/Explorer/ExplorerOverlay.xul	Fri Feb  7 10:28:43 2003
@@ -8,10 +8,10 @@
 
 <vbox id="explorer">
 <label flex="1" id="explorer-ishidden" 
-       value="No sites defined in this Moztop" hidden="false"/>
-<tree flex="1" hidden="true"
+       value="No sites defined in this Moztop" hidden="true"/>
+<tree flex="1" hidden="false"
     id="explorertree" ref="urn:moztop:sites" 
-    datasources="rdf:null" 
+    datasources="rdf:null" ondblclick="openResource();"
     containment="http://home.netscape.com/NC-rdf#subitems">
   <treecols>
     <treecol id="ResourceNameColumn" label="Name" primary="true" flex="1"/>
@@ -58,7 +58,7 @@
     </template>
 </tree>
 
-<box id="explorer-buttons" orient="vertical" hidden="true">
+<box id="explorer-buttons" orient="vertical" hidden="false">
   <box orient="horizontal">
     <menulist id="field_obj_type" label="Type">
       <menupopup>