[Zope-CVS] CVS: Packages/Moztop/moztop/content/workspace - genericviewer.xml:1.3 zptpagebindings.xml:1.3

Paul Everitt paul@zope.com
Wed, 2 Apr 2003 16:39:31 -0500


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

Modified Files:
	genericviewer.xml zptpagebindings.xml 
Log Message:
Post-DZUG.  Moved in button cleanup.


=== Packages/Moztop/moztop/content/workspace/genericviewer.xml 1.2 => 1.3 ===
--- Packages/Moztop/moztop/content/workspace/genericviewer.xml:1.2	Wed Apr  2 13:23:39 2003
+++ Packages/Moztop/moztop/content/workspace/genericviewer.xml	Wed Apr  2 16:39:30 2003
@@ -94,8 +94,8 @@
         }
 
         var jsdav = new DavClient();
-        var pf = new PropFind();
-        var p = new Prop("DAV:");
+        var pf = new DavPropFind();
+        var p = new DavProp("DAV:");
         p.addProperty("source");
         pf.addProp(p);
         jsdav.PROPFIND(url, pf, null, callback);


=== Packages/Moztop/moztop/content/workspace/zptpagebindings.xml 1.2 => 1.3 ===
--- Packages/Moztop/moztop/content/workspace/zptpagebindings.xml:1.2	Wed Apr  2 13:23:39 2003
+++ Packages/Moztop/moztop/content/workspace/zptpagebindings.xml	Wed Apr  2 16:39:30 2003
@@ -117,28 +117,22 @@
   <implementation>
     <method name="update">
       <body>
-	thiswidget = document.getAnonymousNodes(this)[0];
-	parentwidget = thiswidget.parentNode.parentNode.parentNode.parentNode.parentNode;
-	dump("\nparentwidget.tagname is " + parentwidget.tagName);
-	dump("\nparentwidget.urn is " + parentwidget.getAttribute("urn"));
-	sourceurl = parentwidget.getAttribute("urn");
-        var iframe = document.getElementById('preview-frame');
+	dump("\nparentwidget.tagname is " + this.parentWidget.tagName);
+	dump("\nthis.parentWidget.urn is " + this.parentWidget.getAttribute("urn"));
+	sourceurl = this.parentWidget.getAttribute("urn");
+        var ifr = document.getElementById('preview-frame');
 
-	alert("src is " + sourceurl);
 
-        iframe.setAttribute("src", sourceurl);
-	return;
-		  alert("srcurl is " + srcurl);
-                    var ifr = document.getAnonymousNodes(this)[0].getElementsByTagNameNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul','iframe')[0];
-                    if (!ifr.getAttribute('src')) {
-                    ifr.setAttribute('src',srcurl);
-                    } else {
-                    ifr.webNavigation.reload(ifr.webNavigation.LOAD_FLAGS_NONE);
-                    }
-                    return false;
+        if (!ifr.getAttribute('src')) {
+          ifr.setAttribute('src',srcurl);
+        } else {
+          ifr.webNavigation.reload(ifr.webNavigation.LOAD_FLAGS_NONE);
+        }
+        return false;
       </body>
     </method>
 
+
     <method name="loadPreview">
       <body>
 	<![CDATA[
@@ -149,6 +143,7 @@
         ]]>
       </body>
     </method>
+
 
     <constructor>
       // The constructor assumes that 'urn' is defined in this scope