Author: tridge
Date: 2005-08-07 06:22:08 +0000 (Sun, 07 Aug 2005)
New Revision: 9175

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9175

Log:
simplify the example code a bit



Modified:
   branches/SAMBA_4_0/swat/esptest/qooxdoo.esp


Changeset:
Modified: branches/SAMBA_4_0/swat/esptest/qooxdoo.esp
===================================================================
--- branches/SAMBA_4_0/swat/esptest/qooxdoo.esp 2005-08-07 06:19:17 UTC (rev 
9174)
+++ branches/SAMBA_4_0/swat/esptest/qooxdoo.esp 2005-08-07 06:22:08 UTC (rev 
9175)
@@ -1,9 +1,5 @@
 <% 
   page_header("columns", "ESP qooxdoo test", "esptest"); 
-
-  libinclude("encoder.js");
-
-  var thispage = request.REQUEST_URI;
 %>
 
 <script type="text/javascript" src="/scripting/client/encoder.js"></script>
@@ -35,17 +31,6 @@
 
     var d = this.getClientWindow().getDocument();
 
-    function myCheckBox(label, name, value) {
-           var w = new QxCheckBox(label, value, name, value);
-           w.setWidth("100%");
-           return w;
-    }
-
-    function myTextField(name, value) {
-           var w = new QxTextField(value);
-           return w;
-    }
-
     var stopit = 0;
     var shared = new Object();
 
@@ -84,15 +69,19 @@
     function myButton(name, label, call) {
         var b = new QxButton(label);
        b.setWidth("25%");
-       b.setVerticalAlign("top");
-       b.name = name;
        b.addEventListener("click", call);
        return b;
     };
 
+    function myCheckBox(label, name, value) {
+           var w = new QxCheckBox(label, value, name, value);
+           w.setWidth("100%");
+           return w;
+    }
+
     var c1 = myCheckBox("Enable The Server", 'checkbox1', false);
     var c2 = myCheckBox("Another Server", 'checkbox2', true);
-    var t3 = myTextField("mytext", "hello");
+    var t3 = new QxTextField("hello");
     var b1 = myButton("send", "Make Call", start_call);
     var b2 = myButton("stop", "Stop Call", stop_call);
     var ta = new QxTextArea;

Reply via email to