[Zope-CVS] CVS: Packages/Moztop/moztop/content - moztop.js:1.5
Stephan Richter
srichter@cbu.edu
Tue, 14 Jan 2003 20:27:08 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content
In directory cvs.zope.org:/tmp/cvs-serv6091/moztop/content
Modified Files:
moztop.js
Log Message:
I think this is a good checkpoint to make a checkin:
- Now we can add Folders in any arbitrary Sub-Folder.
- I needed to fix the nsXmlRpcClient.js file, so I provide the fixed
version here.
- Updated CHANGES.txt.
- Updated INSTALL.txt to reflect the fix for nzXmlRpcClient.js and made
a note that a nightly build is required, since the XML-RPC lib does not
work in 1.2.1.
=== Packages/Moztop/moztop/content/moztop.js 1.4 => 1.5 ===
--- Packages/Moztop/moztop/content/moztop.js:1.4 Tue Jan 14 12:09:03 2003
+++ Packages/Moztop/moztop/content/moztop.js Tue Jan 14 20:26:35 2003
@@ -3,7 +3,7 @@
.classes["@mozilla.org/rdf/rdf-service;1"]
.getService(Components.interfaces.nsIRDFService);
-var contentsURL = "http://192.168.1.3:9080/@@contents.rdf"
+var contentsURL = "http://localhost:8080/@@contents.rdf"
function startProgram() {
initTaskList();
@@ -28,34 +28,27 @@
'For more information see http://www.zope.org/')
}
-function loginZopeServer (url) {
- // This is a bogus function to initiate a request to the Zope 3
- // server, for no reason other than to generate a login dialog. RDF
- // doesn't seem to do the right thing here.
-
- var p = new XMLHttpRequest();
- p.open("GET", url, false);
- p.send(null);
- return;
+function loginZopeServer(url) {
+ // This is a bogus function to initiate a request to the Zope 3
+ // server, for no reason other than to generate a login dialog. RDF
+ // doesn't seem to do the right thing here.
+ var p = new XMLHttpRequest();
+ p.open("GET", url, false);
+ p.send(null);
+ return;
}
/* Initialize the Explorer datasource */
function initExplorer() {
-
- loginZopeServer(contentsURL); // Need to authenticate, bleh
- var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"]
- .getService(Components.interfaces.nsIRDFService);
- var ds = rdf.GetDataSource(contentsURL);
- var tree = document.getElementById('navigationtree');
- tree.database.AddDataSource(ds);
- tree.setAttribute("ref", "urn:explorer:data");
- tree.builder.rebuild();
+ // loginZopeServer(contentsURL); // Need to authenticate, bleh
+ var ds = RDF.GetDataSource(contentsURL);
+ var tree = document.getElementById('navigationtree');
+ tree.database.AddDataSource(ds);
+ tree.setAttribute("ref", "urn:explorer:data");
}
/* Reload Explorer datasource */
function reloadContentData() {
- var RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"]
- .getService(Components.interfaces.nsIRDFService);
var tree = document.getElementById('navigationtree');
// XXX There are some issues using this variant:
var ds = RDF.GetDataSource(contentsURL);
@@ -63,5 +56,6 @@
ds = ds.QueryInterface(
Components.interfaces.nsIRDFRemoteDataSource);
ds.Refresh(false);
+ alert('done');
tree.builder.rebuild();
}