Removing alert() and using cloudeebus.log()
[contrib/cloudeebus.git] / doc / sample / cloudeebus.html
index 2c1119c..b03391c 100644 (file)
@@ -17,7 +17,7 @@
    <body>
         <center><h1>cloudeebus</h1></center>
         <br>
-               <textarea cols="80" rows=24 id="script">
+               <textarea style="width:80%" rows="32" id="script">
 var manifest = {
        name: "cloudeebus",
        key: "secret",
@@ -40,11 +40,13 @@ function logCB(result) {
 }
 
 function gotNotifProxy(proxy) {
-  proxy.Notify("Cloudeebus",0,"","Cloudeebus says:", "Hello, world !", [], {}, 0);
+  for (var ifproxy in proxy.interfaceProxies)
+    cloudeebus.log(ifproxy);
+  proxy.getInterface("org.freedesktop.Notifications").Notify("Cloudeebus",0,"","Cloudeebus says:", "Hello, world !", [], {}, 0);
 }
 
 function gotBusProxy(proxy) {
-  proxy.ListNames(logCB, errorCB);
+  proxy.ListNames().then(logCB, errorCB);
 }
 
 function connectSuccess() {